class SegmentDocValuesProducer extends DocValuesProducer
Modifier and Type | Field and Description |
---|---|
private static long |
BASE_RAM_BYTES_USED |
(package private) java.util.List<java.lang.Long> |
dvGens |
(package private) java.util.Set<DocValuesProducer> |
dvProducers |
(package private) java.util.Map<java.lang.String,DocValuesProducer> |
dvProducersByField |
private static long |
LONG_RAM_BYTES_USED |
Constructor and Description |
---|
SegmentDocValuesProducer(SegmentCommitInfo si,
Directory dir,
FieldInfos coreInfos,
FieldInfos allInfos,
SegmentDocValues segDocValues)
Creates a new producer that handles updated docvalues fields
|
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this producer
|
void |
close() |
BinaryDocValues |
getBinary(FieldInfo field)
Returns
BinaryDocValues for this field. |
java.util.Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
NumericDocValues |
getNumeric(FieldInfo field)
Returns
NumericDocValues for this field. |
SortedDocValues |
getSorted(FieldInfo field)
Returns
SortedDocValues for this field. |
SortedNumericDocValues |
getSortedNumeric(FieldInfo field)
Returns
SortedNumericDocValues for this field. |
SortedSetDocValues |
getSortedSet(FieldInfo field)
Returns
SortedSetDocValues for this field. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
java.lang.String |
toString() |
getMergeInstance
private static final long LONG_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED
final java.util.Map<java.lang.String,DocValuesProducer> dvProducersByField
final java.util.Set<DocValuesProducer> dvProducers
final java.util.List<java.lang.Long> dvGens
SegmentDocValuesProducer(SegmentCommitInfo si, Directory dir, FieldInfos coreInfos, FieldInfos allInfos, SegmentDocValues segDocValues) throws java.io.IOException
si
- commit pointdir
- directorycoreInfos
- fieldinfos for the segmentallInfos
- all fieldinfos including updated onessegDocValues
- producer mapjava.io.IOException
public NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducer
NumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric
in class DocValuesProducer
java.io.IOException
public BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
DocValuesProducer
BinaryDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary
in class DocValuesProducer
java.io.IOException
public SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted
in class DocValuesProducer
java.io.IOException
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedNumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedNumeric
in class DocValuesProducer
java.io.IOException
public SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedSetDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet
in class DocValuesProducer
java.io.IOException
public void checkIntegrity() throws java.io.IOException
DocValuesProducer
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity
in class DocValuesProducer
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public long ramBytesUsed()
Accountable
public java.util.Collection<Accountable> getChildResources()
Accountable
Accountables
public java.lang.String toString()
toString
in class java.lang.Object