Class Lucene90DocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer
- All Implemented Interfaces:
Closeable
,AutoCloseable
reader for
Lucene90DocValuesFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private class
private static class
private class
Reader for longs split into blocks of different bits per values. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,
Lucene90DocValuesProducer.BinaryEntry> private final IndexInput
private final int
private final boolean
private final Map<String,
Lucene90DocValuesProducer.NumericEntry> private final Map<String,
Lucene90DocValuesProducer.SortedEntry> private final Map<String,
Lucene90DocValuesProducer.SortedNumericEntry> private final Map<String,
Lucene90DocValuesProducer.SortedSetEntry> private int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Lucene90DocValuesProducer
(Map<String, Lucene90DocValuesProducer.NumericEntry> numerics, Map<String, Lucene90DocValuesProducer.BinaryEntry> binaries, Map<String, Lucene90DocValuesProducer.SortedEntry> sorted, Map<String, Lucene90DocValuesProducer.SortedSetEntry> sortedSets, Map<String, Lucene90DocValuesProducer.SortedNumericEntry> sortedNumerics, IndexInput data, int maxDoc, int version, boolean merging) (package private)
Lucene90DocValuesProducer
(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) expert: instantiates a new reader -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks consistency of this producervoid
close()
ReturnsBinaryDocValues
for this field.private LongValues
getDirectReaderInstance
(RandomAccessInput slice, int bitsPerValue, long offset, long numValues) Returns an instance optimized for merging.private NumericDocValues
getNumeric
(FieldInfo field) ReturnsNumericDocValues
for this field.private LongValues
private SortedDocValues
ReturnsSortedDocValues
for this field.private SortedNumericDocValues
getSortedNumeric
(FieldInfo field) ReturnsSortedNumericDocValues
for this field.getSortedSet
(FieldInfo field) ReturnsSortedSetDocValues
for this field.readBinary
(IndexInput meta) private void
readFields
(IndexInput meta, FieldInfos infos) readNumeric
(IndexInput meta) private void
readNumeric
(IndexInput meta, Lucene90DocValuesProducer.NumericEntry entry) readSorted
(IndexInput meta) readSortedNumeric
(IndexInput meta) readSortedSet
(IndexInput meta) private static void
-
Field Details
-
numerics
-
binaries
-
sorted
-
sortedSets
-
sortedNumerics
-
data
-
maxDoc
private final int maxDoc -
version
private int version -
merging
private final boolean merging
-
-
Constructor Details
-
Lucene90DocValuesProducer
Lucene90DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException expert: instantiates a new reader- Throws:
IOException
-
Lucene90DocValuesProducer
private Lucene90DocValuesProducer(Map<String, Lucene90DocValuesProducer.NumericEntry> numerics, Map<String, Lucene90DocValuesProducer.BinaryEntry> binaries, Map<String, Lucene90DocValuesProducer.SortedEntry> sorted, Map<String, Lucene90DocValuesProducer.SortedSetEntry> sortedSets, Map<String, Lucene90DocValuesProducer.SortedNumericEntry> sortedNumerics, IndexInput data, int maxDoc, int version, boolean merging)
-
-
Method Details
-
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
- Throws:
IOException
-
readNumeric
- Throws:
IOException
-
readNumeric
private void readNumeric(IndexInput meta, Lucene90DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
readBinary
- Throws:
IOException
-
readSorted
- Throws:
IOException
-
readSortedSet
- Throws:
IOException
-
readTermDict
private static void readTermDict(IndexInput meta, Lucene90DocValuesProducer.TermsDictEntry entry) throws IOException - Throws:
IOException
-
readSortedNumeric
private Lucene90DocValuesProducer.SortedNumericEntry readSortedNumeric(IndexInput meta) throws IOException - Throws:
IOException
-
readSortedNumeric
private Lucene90DocValuesProducer.SortedNumericEntry readSortedNumeric(IndexInput meta, Lucene90DocValuesProducer.SortedNumericEntry entry) throws IOException - Throws:
IOException
-
close
- Throws:
IOException
-
getNumeric
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:
IOException
-
getDirectReaderInstance
private LongValues getDirectReaderInstance(RandomAccessInput slice, int bitsPerValue, long offset, long numValues) -
getNumeric
private NumericDocValues getNumeric(Lucene90DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
getNumericValues
private LongValues getNumericValues(Lucene90DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
getBinary
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:
IOException
-
getSorted
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:
IOException
-
getSorted
- Throws:
IOException
-
getSortedNumeric
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:
IOException
-
getSortedNumeric
private SortedNumericDocValues getSortedNumeric(Lucene90DocValuesProducer.SortedNumericEntry entry) throws IOException - Throws:
IOException
-
getSortedSet
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:
IOException
-
checkIntegrity
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:
IOException
-