Class Lucene90DocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class Lucene90DocValuesProducer extends DocValuesProducer
reader forLucene90DocValuesFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classLucene90DocValuesProducer.BaseSortedDocValuesprivate classLucene90DocValuesProducer.BaseSortedSetDocValuesprivate static classLucene90DocValuesProducer.BinaryEntryprivate static classLucene90DocValuesProducer.DenseBinaryDocValuesprivate static classLucene90DocValuesProducer.DenseNumericDocValuesprivate static classLucene90DocValuesProducer.NumericEntryprivate static classLucene90DocValuesProducer.SortedEntryprivate static classLucene90DocValuesProducer.SortedNumericEntryprivate static classLucene90DocValuesProducer.SortedSetEntryprivate static classLucene90DocValuesProducer.SparseBinaryDocValuesprivate static classLucene90DocValuesProducer.SparseNumericDocValuesprivate classLucene90DocValuesProducer.TermsDictprivate static classLucene90DocValuesProducer.TermsDictEntryprivate classLucene90DocValuesProducer.VaryingBPVReaderReader for longs split into blocks of different bits per values.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,Lucene90DocValuesProducer.BinaryEntry>binariesprivate IndexInputdataprivate intmaxDocprivate booleanmergingprivate java.util.Map<java.lang.String,Lucene90DocValuesProducer.NumericEntry>numericsprivate java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedEntry>sortedprivate java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedNumericEntry>sortedNumericsprivate java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedSetEntry>sortedSetsprivate intversion
-
Constructor Summary
Constructors Modifier Constructor Description privateLucene90DocValuesProducer(java.util.Map<java.lang.String,Lucene90DocValuesProducer.NumericEntry> numerics, java.util.Map<java.lang.String,Lucene90DocValuesProducer.BinaryEntry> binaries, java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedEntry> sorted, java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedSetEntry> sortedSets, java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedNumericEntry> sortedNumerics, IndexInput data, int maxDoc, int version, boolean merging)(package private)Lucene90DocValuesProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension)expert: instantiates a new reader
-
Method Summary
-
-
-
Field Detail
-
numerics
private final java.util.Map<java.lang.String,Lucene90DocValuesProducer.NumericEntry> numerics
-
binaries
private final java.util.Map<java.lang.String,Lucene90DocValuesProducer.BinaryEntry> binaries
-
sorted
private final java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedEntry> sorted
-
sortedSets
private final java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedSetEntry> sortedSets
-
sortedNumerics
private final java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedNumericEntry> sortedNumerics
-
data
private final IndexInput data
-
maxDoc
private final int maxDoc
-
version
private int version
-
merging
private final boolean merging
-
-
Constructor Detail
-
Lucene90DocValuesProducer
Lucene90DocValuesProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
expert: instantiates a new reader- Throws:
java.io.IOException
-
Lucene90DocValuesProducer
private Lucene90DocValuesProducer(java.util.Map<java.lang.String,Lucene90DocValuesProducer.NumericEntry> numerics, java.util.Map<java.lang.String,Lucene90DocValuesProducer.BinaryEntry> binaries, java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedEntry> sorted, java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedSetEntry> sortedSets, java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedNumericEntry> sortedNumerics, IndexInput data, int maxDoc, int version, boolean merging)
-
-
Method Detail
-
getMergeInstance
public DocValuesProducer 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
-
readFields
private void readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
- Throws:
java.io.IOException
-
readNumeric
private Lucene90DocValuesProducer.NumericEntry readNumeric(IndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readNumeric
private void readNumeric(IndexInput meta, Lucene90DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
readBinary
private Lucene90DocValuesProducer.BinaryEntry readBinary(IndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSorted
private Lucene90DocValuesProducer.SortedEntry readSorted(IndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedSet
private Lucene90DocValuesProducer.SortedSetEntry readSortedSet(IndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readTermDict
private static void readTermDict(IndexInput meta, Lucene90DocValuesProducer.TermsDictEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedNumeric
private Lucene90DocValuesProducer.SortedNumericEntry readSortedNumeric(IndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedNumeric
private Lucene90DocValuesProducer.SortedNumericEntry readSortedNumeric(IndexInput meta, Lucene90DocValuesProducer.SortedNumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getNumeric
public NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.NUMERIC. The return value is nevernull.- Specified by:
getNumericin classDocValuesProducer- Throws:
java.io.IOException
-
getDirectReaderInstance
private LongValues getDirectReaderInstance(RandomAccessInput slice, int bitsPerValue, long offset, long numValues)
-
getNumeric
private NumericDocValues getNumeric(Lucene90DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getNumericValues
private LongValues getNumericValues(Lucene90DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getBinary
public BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.BINARY. The return value is nevernull.- Specified by:
getBinaryin classDocValuesProducer- Throws:
java.io.IOException
-
getSorted
public SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED. The return value is nevernull.- Specified by:
getSortedin classDocValuesProducer- Throws:
java.io.IOException
-
getSorted
private SortedDocValues getSorted(Lucene90DocValuesProducer.SortedEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getSortedNumeric
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsSortedNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_NUMERIC. The return value is nevernull.- Specified by:
getSortedNumericin classDocValuesProducer- Throws:
java.io.IOException
-
getSortedNumeric
private SortedNumericDocValues getSortedNumeric(Lucene90DocValuesProducer.SortedNumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getSortedSet
public SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_SET. The return value is nevernull.- Specified by:
getSortedSetin classDocValuesProducer- Throws:
java.io.IOException
-
checkIntegrity
public void checkIntegrity() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
-