Class Lucene70DocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- org.apache.lucene.codecs.lucene70.Lucene70DocValuesProducer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Accountable
final class Lucene70DocValuesProducer extends DocValuesProducer implements java.io.Closeable
reader forLucene70DocValuesFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classLucene70DocValuesProducer.BaseSortedDocValuesprivate static classLucene70DocValuesProducer.BaseSortedSetDocValuesprivate static classLucene70DocValuesProducer.BinaryEntryprivate static classLucene70DocValuesProducer.DenseBinaryDocValuesprivate static classLucene70DocValuesProducer.DenseNumericDocValuesprivate static classLucene70DocValuesProducer.NumericEntryprivate static classLucene70DocValuesProducer.SortedEntryprivate static classLucene70DocValuesProducer.SortedNumericEntryprivate static classLucene70DocValuesProducer.SortedSetEntryprivate static classLucene70DocValuesProducer.SparseBinaryDocValuesprivate static classLucene70DocValuesProducer.SparseNumericDocValuesprivate static classLucene70DocValuesProducer.TermsDictprivate static classLucene70DocValuesProducer.TermsDictEntry
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,Lucene70DocValuesProducer.BinaryEntry>binariesprivate IndexInputdataprivate intmaxDocprivate java.util.Map<java.lang.String,Lucene70DocValuesProducer.NumericEntry>numericsprivate longramBytesUsedprivate java.util.Map<java.lang.String,Lucene70DocValuesProducer.SortedEntry>sortedprivate java.util.Map<java.lang.String,Lucene70DocValuesProducer.SortedNumericEntry>sortedNumericsprivate java.util.Map<java.lang.String,Lucene70DocValuesProducer.SortedSetEntry>sortedSets-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description Lucene70DocValuesProducer(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,Lucene70DocValuesProducer.NumericEntry> numerics
-
binaries
private final java.util.Map<java.lang.String,Lucene70DocValuesProducer.BinaryEntry> binaries
-
sorted
private final java.util.Map<java.lang.String,Lucene70DocValuesProducer.SortedEntry> sorted
-
sortedSets
private final java.util.Map<java.lang.String,Lucene70DocValuesProducer.SortedSetEntry> sortedSets
-
sortedNumerics
private final java.util.Map<java.lang.String,Lucene70DocValuesProducer.SortedNumericEntry> sortedNumerics
-
ramBytesUsed
private long ramBytesUsed
-
data
private final IndexInput data
-
maxDoc
private final int maxDoc
-
-
Constructor Detail
-
Lucene70DocValuesProducer
Lucene70DocValuesProducer(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(ChecksumIndexInput meta, FieldInfos infos) throws java.io.IOException
- Throws:
java.io.IOException
-
readNumeric
private Lucene70DocValuesProducer.NumericEntry readNumeric(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readNumeric
private void readNumeric(ChecksumIndexInput meta, Lucene70DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
readBinary
private Lucene70DocValuesProducer.BinaryEntry readBinary(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSorted
private Lucene70DocValuesProducer.SortedEntry readSorted(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedSet
private Lucene70DocValuesProducer.SortedSetEntry readSortedSet(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readTermDict
private static void readTermDict(ChecksumIndexInput meta, Lucene70DocValuesProducer.TermsDictEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
readSortedNumeric
private Lucene70DocValuesProducer.SortedNumericEntry readSortedNumeric(ChecksumIndexInput meta) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
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.- Specified by:
getNumericin classDocValuesProducer- Throws:
java.io.IOException
-
getNumeric
private NumericDocValues getNumeric(Lucene70DocValuesProducer.NumericEntry entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getNumericValues
private LongValues getNumericValues(Lucene70DocValuesProducer.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.- 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.- Specified by:
getSortedin classDocValuesProducer- Throws:
java.io.IOException
-
getSorted
private SortedDocValues getSorted(Lucene70DocValuesProducer.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.- Specified by:
getSortedNumericin classDocValuesProducer- 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.- 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
-
-