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() |
getMergeInstanceprivate 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.IOExceptionpublic NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducerNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric in class DocValuesProducerjava.io.IOExceptionpublic BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
DocValuesProducerBinaryDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary in class DocValuesProducerjava.io.IOExceptionpublic SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted in class DocValuesProducerjava.io.IOExceptionpublic SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedNumeric in class DocValuesProducerjava.io.IOExceptionpublic SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedSetDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet in class DocValuesProducerjava.io.IOExceptionpublic void checkIntegrity()
throws java.io.IOException
DocValuesProducerNote 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 DocValuesProducerjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic long ramBytesUsed()
Accountablepublic java.util.Collection<Accountable> getChildResources()
AccountableAccountablespublic java.lang.String toString()
toString in class java.lang.Object