Package org.apache.lucene.codecs.memory
Class DirectDocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.codecs.memory.DirectDocValuesProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
Reader for
DirectDocValuesFormat-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, DirectDocValuesProducer.BinaryEntry> private final Map<String, DirectDocValuesProducer.BinaryRawValues> (package private) static final byteprivate final IndexInputprivate final Map<String, FixedBitSet> private final intprivate final boolean(package private) static final byteprivate final intprivate final Map<String, DirectDocValuesProducer.NumericRawValues> private final Map<String, DirectDocValuesProducer.NumericEntry> private final AtomicLong(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byteprivate final Map<String, DirectDocValuesProducer.SortedRawValues> private final Map<String, DirectDocValuesProducer.SortedNumericRawValues> private final Map<String, DirectDocValuesProducer.SortedNumericEntry> private final Map<String, DirectDocValuesProducer.SortedEntry> private final Map<String, DirectDocValuesProducer.SortedSetRawValues> private final Map<String, DirectDocValuesProducer.SortedSetEntry> private final int(package private) static final int(package private) static final intFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionDirectDocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()ReturnsBinaryDocValuesfor this field.Returns nested resources of this class.private LegacyBinaryDocValuesgetLegacyBinary(FieldInfo field) Returns an instance optimized for merging.private BitsgetMissingBits(FieldInfo field, long offset, long length) getNumeric(FieldInfo field) ReturnsNumericDocValuesfor this field.ReturnsSortedDocValuesfor this field.getSortedNumeric(FieldInfo field) ReturnsSortedNumericDocValuesfor this field.getSortedSet(FieldInfo field) ReturnsSortedSetDocValuesfor this field.loadSorted(FieldInfo field) private LegacySortedDocValuesnewSortedInstance(LegacyNumericDocValues docToOrd, LegacyBinaryDocValues values, int count) longReturn the memory usage of this object in bytes.readBinaryEntry(IndexInput meta) private intreadFields(IndexInput meta, FieldInfos infos) readNumericEntry(IndexInput meta) readSortedEntry(IndexInput meta) readSortedNumericEntry(IndexInput meta, boolean singleton) readSortedSetEntry(IndexInput meta, boolean singleton) toString()
-
Field Details
-
numerics
-
binaries
-
sorteds
-
sortedSets
-
sortedNumerics
-
data
-
numericInstances
-
binaryInstances
-
sortedInstances
-
sortedSetInstances
-
sortedNumericInstances
-
docsWithFieldInstances
-
numEntries
private final int numEntries -
maxDoc
private final int maxDoc -
ramBytesUsed
-
version
private final int version -
merging
private final boolean merging -
NUMBER
static final byte NUMBER- See Also:
-
BYTES
static final byte BYTES- See Also:
-
SORTED
static final byte SORTED- See Also:
-
SORTED_SET
static final byte SORTED_SET- See Also:
-
SORTED_SET_SINGLETON
static final byte SORTED_SET_SINGLETON- See Also:
-
SORTED_NUMERIC
static final byte SORTED_NUMERIC- See Also:
-
SORTED_NUMERIC_SINGLETON
static final byte SORTED_NUMERIC_SINGLETON- See Also:
-
VERSION_START
static final int VERSION_START- See Also:
-
VERSION_CURRENT
static final int VERSION_CURRENT- See Also:
-
-
Constructor Details
-
DirectDocValuesProducer
DirectDocValuesProducer(DirectDocValuesProducer original) -
DirectDocValuesProducer
DirectDocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException - Throws:
IOException
-
-
Method Details
-
readNumericEntry
- Throws:
IOException
-
readBinaryEntry
- Throws:
IOException
-
readSortedEntry
- Throws:
IOException
-
readSortedSetEntry
private DirectDocValuesProducer.SortedSetEntry readSortedSetEntry(IndexInput meta, boolean singleton) throws IOException - Throws:
IOException
-
readSortedNumericEntry
private DirectDocValuesProducer.SortedNumericEntry readSortedNumericEntry(IndexInput meta, boolean singleton) throws IOException - Throws:
IOException
-
readFields
- 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
-
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
-
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
-
loadNumeric
private DirectDocValuesProducer.NumericRawValues loadNumeric(DirectDocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
getLegacyBinary
- 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
-
loadBinary
private DirectDocValuesProducer.BinaryRawValues loadBinary(DirectDocValuesProducer.BinaryEntry entry) throws IOException - 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
-
newSortedInstance
private LegacySortedDocValues newSortedInstance(LegacyNumericDocValues docToOrd, LegacyBinaryDocValues values, int count) -
loadSorted
- 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
-
loadSortedNumeric
private DirectDocValuesProducer.SortedNumericRawValues loadSortedNumeric(DirectDocValuesProducer.SortedNumericEntry entry) throws IOException - 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
-
loadSortedSet
private DirectDocValuesProducer.SortedSetRawValues loadSortedSet(DirectDocValuesProducer.SortedSetEntry entry) throws IOException - Throws:
IOException
-
getMissingBits
- Throws:
IOException
-
getMergeInstance
Description copied from class:DocValuesProducerReturns an instance optimized for merging. This instance may only be consumed in the thread that calledDocValuesProducer.getMergeInstance().The default implementation returns
this- Overrides:
getMergeInstancein classDocValuesProducer
-
close
- Throws:
IOException
-