Class Lucene80DocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- org.apache.lucene.codecs.lucene80.Lucene80DocValuesProducer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Accountable
final class Lucene80DocValuesProducer extends DocValuesProducer implements java.io.Closeable
reader forLucene80DocValuesFormat
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,Lucene80DocValuesProducer.BinaryEntry>
binaries
private IndexInput
data
private int
maxDoc
private java.util.Map<java.lang.String,Lucene80DocValuesProducer.NumericEntry>
numerics
private long
ramBytesUsed
private java.util.Map<java.lang.String,Lucene80DocValuesProducer.SortedEntry>
sorted
private java.util.Map<java.lang.String,Lucene80DocValuesProducer.SortedNumericEntry>
sortedNumerics
private java.util.Map<java.lang.String,Lucene80DocValuesProducer.SortedSetEntry>
sortedSets
private int
version
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description Lucene80DocValuesProducer(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
-
Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Field Detail
-
numerics
private final java.util.Map<java.lang.String,Lucene80DocValuesProducer.NumericEntry> numerics
-
binaries
private final java.util.Map<java.lang.String,Lucene80DocValuesProducer.BinaryEntry> binaries
-
sorted
private final java.util.Map<java.lang.String,Lucene80DocValuesProducer.SortedEntry> sorted
-
sortedSets
private final java.util.Map<java.lang.String,Lucene80DocValuesProducer.SortedSetEntry> sortedSets
-
sortedNumerics
private final java.util.Map<java.lang.String,Lucene80DocValuesProducer.SortedNumericEntry> sortedNumerics
-
ramBytesUsed
private long ramBytesUsed
-
data
private final IndexInput data
-
maxDoc
private final int maxDoc
-
version
private int version
-
-
Constructor Detail
-
Lucene80DocValuesProducer
Lucene80DocValuesProducer(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
-
-
Method Detail
-
readFields
private void readFields(java.lang.String segmentName, ChecksumIndexInput meta, FieldInfos infos) throws java.io.IOException
- Throws:
java.io.IOException
-
readNumeric
private Lucene80DocValuesProducer.NumericEntry readNumeric(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readNumeric
private void readNumeric(ChecksumIndexInput meta, Lucene80DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
readBinary
private Lucene80DocValuesProducer.BinaryEntry readBinary(IndexInput meta, boolean compressed) throws java.io.IOException
- Throws:
java.io.IOException
-
readSorted
private Lucene80DocValuesProducer.SortedEntry readSorted(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedSet
private Lucene80DocValuesProducer.SortedSetEntry readSortedSet(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readTermDict
private static void readTermDict(ChecksumIndexInput meta, Lucene80DocValuesProducer.TermsDictEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedNumeric
private Lucene80DocValuesProducer.SortedNumericEntry readSortedNumeric(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-
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.- Specified by:
getNumeric
in classDocValuesProducer
- Throws:
java.io.IOException
-
getNumeric
private NumericDocValues getNumeric(Lucene80DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getNumericValues
private LongValues getNumericValues(Lucene80DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getUncompressedBinary
private BinaryDocValues getUncompressedBinary(Lucene80DocValuesProducer.BinaryEntry 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.- Specified by:
getBinary
in classDocValuesProducer
- Throws:
java.io.IOException
-
getCompressedBinary
private BinaryDocValues getCompressedBinary(Lucene80DocValuesProducer.BinaryEntry entry) throws java.io.IOException
- 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.- Specified by:
getSorted
in classDocValuesProducer
- Throws:
java.io.IOException
-
getSorted
private SortedDocValues getSorted(Lucene80DocValuesProducer.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.- Specified by:
getSortedNumeric
in classDocValuesProducer
- 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.- 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
-
-