Class Lucene80DocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.codecs.lucene80.Lucene80DocValuesProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
reader for
Lucene80DocValuesFormat-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class(package private) classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate classReader for longs split into blocks of different bits per values. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, Lucene80DocValuesProducer.BinaryEntry> private final IndexInputprivate final intprivate final Map<String, Lucene80DocValuesProducer.NumericEntry> private longprivate final Map<String, Lucene80DocValuesProducer.SortedEntry> private final Map<String, Lucene80DocValuesProducer.SortedNumericEntry> private final Map<String, Lucene80DocValuesProducer.SortedSetEntry> private intFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionLucene80DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) expert: instantiates a new reader -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()ReturnsBinaryDocValuesfor this field.private BinaryDocValuesprivate NumericDocValuesgetNumeric(FieldInfo field) ReturnsNumericDocValuesfor this field.private LongValuesprivate SortedDocValuesReturnsSortedDocValuesfor this field.getSortedNumeric(FieldInfo field) ReturnsSortedNumericDocValuesfor this field.getSortedSet(FieldInfo field) ReturnsSortedSetDocValuesfor this field.private BinaryDocValueslongReturn the memory usage of this object in bytes.readBinary(IndexInput meta, boolean compressed) private voidreadFields(String segmentName, ChecksumIndexInput meta, FieldInfos infos) private voidreadSorted(ChecksumIndexInput meta) private static voidMethods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
numerics
-
binaries
-
sorted
-
sortedSets
-
sortedNumerics
-
ramBytesUsed
private long ramBytesUsed -
data
-
maxDoc
private final int maxDoc -
version
private int version
-
-
Constructor Details
-
Lucene80DocValuesProducer
Lucene80DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException expert: instantiates a new reader- Throws:
IOException
-
-
Method Details
-
readFields
private void readFields(String segmentName, ChecksumIndexInput meta, FieldInfos infos) throws IOException - Throws:
IOException
-
readNumeric
private Lucene80DocValuesProducer.NumericEntry readNumeric(ChecksumIndexInput meta) throws IOException - Throws:
IOException
-
readNumeric
private void readNumeric(ChecksumIndexInput meta, Lucene80DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
readBinary
private Lucene80DocValuesProducer.BinaryEntry readBinary(IndexInput meta, boolean compressed) throws IOException - Throws:
IOException
-
readSorted
private Lucene80DocValuesProducer.SortedEntry readSorted(ChecksumIndexInput meta) throws IOException - Throws:
IOException
-
readSortedSet
private Lucene80DocValuesProducer.SortedSetEntry readSortedSet(ChecksumIndexInput meta) throws IOException - Throws:
IOException
-
readTermDict
private static void readTermDict(ChecksumIndexInput meta, Lucene80DocValuesProducer.TermsDictEntry entry) throws IOException - Throws:
IOException
-
readSortedNumeric
private Lucene80DocValuesProducer.SortedNumericEntry readSortedNumeric(ChecksumIndexInput meta) throws IOException - Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
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
-
getNumeric
private NumericDocValues getNumeric(Lucene80DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
getNumericValues
private LongValues getNumericValues(Lucene80DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
getUncompressedBinary
private BinaryDocValues getUncompressedBinary(Lucene80DocValuesProducer.BinaryEntry entry) throws IOException - 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
-
getCompressedBinary
private BinaryDocValues getCompressedBinary(Lucene80DocValuesProducer.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
-
getSorted
- 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
-