final class Lucene54DocValuesProducer extends DocValuesProducer implements java.io.Closeable
Lucene54DocValuesFormat
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Lucene54DocValuesProducer.BinaryEntry
metadata entry for a binary docvalues field
|
(package private) static class |
Lucene54DocValuesProducer.CompressedBinaryDocValues |
(package private) static class |
Lucene54DocValuesProducer.LongBinaryDocValues |
(package private) static class |
Lucene54DocValuesProducer.NumericEntry
metadata entry for a numeric docvalues field
|
(package private) static class |
Lucene54DocValuesProducer.ReverseTermsIndex |
(package private) static class |
Lucene54DocValuesProducer.SortedSetEntry
metadata entry for a sorted-set docvalues field
|
(package private) static class |
Lucene54DocValuesProducer.SparseBits |
(package private) static class |
Lucene54DocValuesProducer.SparseLongValues |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,MonotonicBlockPackedReader> |
addressInstances |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.BinaryEntry> |
binaries |
private IndexInput |
data |
private java.util.Map<java.lang.String,DirectMonotonicReader.Meta> |
directAddressesMeta |
private int |
maxDoc |
private boolean |
merging |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.NumericEntry> |
numerics |
private int |
numFields |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.NumericEntry> |
ordIndexes |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.NumericEntry> |
ords |
private java.util.concurrent.atomic.AtomicLong |
ramBytesUsed |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.ReverseTermsIndex> |
reverseIndexInstances |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.SortedSetEntry> |
sortedNumerics |
private java.util.Map<java.lang.String,Lucene54DocValuesProducer.SortedSetEntry> |
sortedSets |
Constructor and Description |
---|
Lucene54DocValuesProducer(Lucene54DocValuesProducer original) |
Lucene54DocValuesProducer(SegmentReadState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension)
expert: instantiates a new reader
|
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.NumericEntry> numerics
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.BinaryEntry> binaries
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.SortedSetEntry> sortedSets
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.SortedSetEntry> sortedNumerics
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.NumericEntry> ords
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.NumericEntry> ordIndexes
private final int numFields
private final java.util.concurrent.atomic.AtomicLong ramBytesUsed
private final IndexInput data
private final int maxDoc
private final java.util.Map<java.lang.String,MonotonicBlockPackedReader> addressInstances
private final java.util.Map<java.lang.String,Lucene54DocValuesProducer.ReverseTermsIndex> reverseIndexInstances
private final java.util.Map<java.lang.String,DirectMonotonicReader.Meta> directAddressesMeta
private final boolean merging
Lucene54DocValuesProducer(Lucene54DocValuesProducer original) throws java.io.IOException
java.io.IOException
Lucene54DocValuesProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
java.io.IOException
private void readSortedField(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOException
private void readSortedSetFieldWithAddresses(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOException
private void readSortedSetFieldWithTable(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOException
private int readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
java.io.IOException
private Lucene54DocValuesProducer.NumericEntry readNumericEntry(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOException
private Lucene54DocValuesProducer.BinaryEntry readBinaryEntry(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOException
Lucene54DocValuesProducer.SortedSetEntry readSortedSetEntry(IndexInput meta) throws java.io.IOException
java.io.IOException
public NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducer
NumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric
in class DocValuesProducer
java.io.IOException
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public java.util.Collection<Accountable> getChildResources()
Accountable
getChildResources
in interface Accountable
Accountables
public void checkIntegrity() throws java.io.IOException
DocValuesProducer
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity
in class DocValuesProducer
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
LongValues getNumeric(Lucene54DocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOException
public BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
DocValuesProducer
BinaryDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary
in class DocValuesProducer
java.io.IOException
private BinaryDocValues getFixedBinary(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOException
private BinaryDocValues getVariableBinary(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOException
private MonotonicBlockPackedReader getIntervalInstance(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOException
private Lucene54DocValuesProducer.ReverseTermsIndex getReverseIndexInstance(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOException
private BinaryDocValues getCompressedBinary(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOException
public SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted
in class DocValuesProducer
java.io.IOException
private LongValues getOrdIndexInstance(FieldInfo field, Lucene54DocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOException
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedNumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedNumeric
in class DocValuesProducer
java.io.IOException
public SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedSetDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet
in class DocValuesProducer
java.io.IOException
private SortedSetDocValues getSortedSetWithAddresses(FieldInfo field) throws java.io.IOException
java.io.IOException
private SortedSetDocValues getSortedSetTable(FieldInfo field, Lucene54DocValuesProducer.SortedSetEntry ss) throws java.io.IOException
java.io.IOException
private Bits getLiveBits(long offset, int count) throws java.io.IOException
java.io.IOException
private Lucene54DocValuesProducer.SparseBits getSparseLiveBits(Lucene54DocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOException
public Bits getDocsWithField(FieldInfo field) throws java.io.IOException
DocValuesProducer
Bits
at the size of reader.maxDoc()
,
with turned on bits for each docid that does have a value for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getDocsWithField
in class DocValuesProducer
java.io.IOException
public DocValuesProducer getMergeInstance() throws java.io.IOException
DocValuesProducer
The default implementation returns this
getMergeInstance
in class DocValuesProducer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException