Class Lucene80DocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.backward_codecs.lucene80.Lucene80DocValuesProducer
- All Implemented Interfaces:
Closeable
,AutoCloseable
reader for
Lucene80DocValuesFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
(package 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 static class
private static 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,
Lucene80DocValuesProducer.BinaryEntry> private final IndexInput
private final int
private final Map<String,
Lucene80DocValuesProducer.NumericEntry> private final Map<String,
Lucene80DocValuesProducer.SortedEntry> private final Map<String,
Lucene80DocValuesProducer.SortedNumericEntry> private final Map<String,
Lucene80DocValuesProducer.SortedSetEntry> private int
-
Constructor Summary
ConstructorsConstructorDescriptionLucene80DocValuesProducer
(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 BinaryDocValues
private NumericDocValues
getNumeric
(FieldInfo field) ReturnsNumericDocValues
for this field.private LongValues
private SortedDocValues
ReturnsSortedDocValues
for this field.getSortedNumeric
(FieldInfo field) ReturnsSortedNumericDocValues
for this field.getSortedSet
(FieldInfo field) ReturnsSortedSetDocValues
for this field.private BinaryDocValues
readBinary
(IndexInput meta, boolean compressed) private void
readFields
(String segmentName, IndexInput meta, FieldInfos infos) readNumeric
(IndexInput meta) private void
readNumeric
(IndexInput meta, Lucene80DocValuesProducer.NumericEntry entry) readSorted
(IndexInput meta) readSortedNumeric
(IndexInput meta) readSortedSet
(IndexInput meta) private static void
Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
Field Details
-
numerics
-
binaries
-
sorted
-
sortedSets
-
sortedNumerics
-
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
- Throws:
IOException
-
readNumeric
- Throws:
IOException
-
readNumeric
private void readNumeric(IndexInput meta, Lucene80DocValuesProducer.NumericEntry entry) throws IOException - Throws:
IOException
-
readBinary
private Lucene80DocValuesProducer.BinaryEntry readBinary(IndexInput meta, boolean compressed) throws IOException - Throws:
IOException
-
readSorted
- Throws:
IOException
-
readSortedSet
- Throws:
IOException
-
readTermDict
private static void readTermDict(IndexInput meta, Lucene80DocValuesProducer.TermsDictEntry entry) throws IOException - Throws:
IOException
-
readSortedNumeric
private Lucene80DocValuesProducer.SortedNumericEntry readSortedNumeric(IndexInput meta) 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
-
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: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
-
getCompressedBinary
private BinaryDocValues getCompressedBinary(Lucene80DocValuesProducer.BinaryEntry entry) throws IOException - 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
-
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
-