Package org.apache.lucene.index
Class SegmentDocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.index.SegmentDocValuesProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
Encapsulates multiple producers when there are docvalues updates as one producer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long(package private) final Set<DocValuesProducer> (package private) final Map<String, DocValuesProducer> private static final longFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionSegmentDocValuesProducer(SegmentCommitInfo si, Directory dir, FieldInfos coreInfos, FieldInfos allInfos, SegmentDocValues segDocValues) Creates a new producer that handles updated docvalues fields -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()ReturnsBinaryDocValuesfor this field.Returns nested resources of this class.getNumeric(FieldInfo field) ReturnsNumericDocValuesfor this field.ReturnsSortedDocValuesfor this field.getSortedNumeric(FieldInfo field) ReturnsSortedNumericDocValuesfor this field.getSortedSet(FieldInfo field) ReturnsSortedSetDocValuesfor this field.longReturn the memory usage of this object in bytes.toString()Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
Field Details
-
LONG_RAM_BYTES_USED
private static final long LONG_RAM_BYTES_USED -
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
dvProducersByField
-
dvProducers
-
dvGens
-
-
Constructor Details
-
SegmentDocValuesProducer
SegmentDocValuesProducer(SegmentCommitInfo si, Directory dir, FieldInfos coreInfos, FieldInfos allInfos, SegmentDocValues segDocValues) throws IOException Creates a new producer that handles updated docvalues fields- Parameters:
si- commit pointdir- directorycoreInfos- fieldinfos for the segmentallInfos- all fieldinfos including updated onessegDocValues- producer map- Throws:
IOException
-
-
Method Details
-
getNumeric
Description copied from class:DocValuesProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNumericin classDocValuesProducer- Throws:
IOException
-
getBinary
Description copied from class:DocValuesProducerReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getBinaryin classDocValuesProducer- Throws:
IOException
-
getSorted
Description copied from class:DocValuesProducerReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedin classDocValuesProducer- Throws:
IOException
-
getSortedNumeric
Description copied from class:DocValuesProducerReturnsSortedNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedNumericin classDocValuesProducer- Throws:
IOException
-
getSortedSet
Description copied from class:DocValuesProducerReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedSetin classDocValuesProducer- Throws:
IOException
-
checkIntegrity
Description copied from class:DocValuesProducerChecks consistency of this producerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrityin classDocValuesProducer- Throws:
IOException
-
close
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
getChildResources
Description copied from interface:AccountableReturns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- See Also:
-
toString
-