Module org.apache.lucene.core
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 class
Lucene90DocValuesProducer.BaseSortedDocValues
private class
Lucene90DocValuesProducer.BaseSortedSetDocValues
private static class
Lucene90DocValuesProducer.BinaryEntry
private static class
Lucene90DocValuesProducer.DenseBinaryDocValues
private static class
Lucene90DocValuesProducer.DenseNumericDocValues
private static class
Lucene90DocValuesProducer.NumericEntry
private static class
Lucene90DocValuesProducer.SortedEntry
private static class
Lucene90DocValuesProducer.SortedNumericEntry
private static class
Lucene90DocValuesProducer.SortedSetEntry
private static class
Lucene90DocValuesProducer.SparseBinaryDocValues
private static class
Lucene90DocValuesProducer.SparseNumericDocValues
private class
Lucene90DocValuesProducer.TermsDict
private static class
Lucene90DocValuesProducer.TermsDictEntry
private class
Lucene90DocValuesProducer.VaryingBPVReader
Reader 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>
binaries
private IndexInput
data
private int
maxDoc
private boolean
merging
private java.util.Map<java.lang.String,Lucene90DocValuesProducer.NumericEntry>
numerics
private java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedEntry>
sorted
private java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedNumericEntry>
sortedNumerics
private java.util.Map<java.lang.String,Lucene90DocValuesProducer.SortedSetEntry>
sortedSets
private int
version
-
Constructor Summary
Constructors Modifier Constructor Description 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)
(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:DocValuesProducer
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledDocValuesProducer.getMergeInstance()
.The default implementation returns
this
- Overrides:
getMergeInstance
in 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:DocValuesProducer
ReturnsNumericDocValues
for 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:
getNumeric
in 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:DocValuesProducer
ReturnsBinaryDocValues
for 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:
getBinary
in classDocValuesProducer
- Throws:
java.io.IOException
-
getSorted
public SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducer
ReturnsSortedDocValues
for 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:
getSorted
in 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:DocValuesProducer
ReturnsSortedNumericDocValues
for 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:
getSortedNumeric
in 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:DocValuesProducer
ReturnsSortedSetDocValues
for 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:
getSortedSet
in classDocValuesProducer
- Throws:
java.io.IOException
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
Description copied from class:DocValuesProducer
Checks 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:
checkIntegrity
in classDocValuesProducer
- Throws:
java.io.IOException
-
-