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.IOExceptionLucene54DocValuesProducer(SegmentReadState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
java.io.IOExceptionprivate void readSortedField(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate void readSortedSetFieldWithAddresses(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate void readSortedSetFieldWithTable(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate int readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
java.io.IOExceptionprivate Lucene54DocValuesProducer.NumericEntry readNumericEntry(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate Lucene54DocValuesProducer.BinaryEntry readBinaryEntry(FieldInfo info, IndexInput meta) throws java.io.IOException
java.io.IOExceptionLucene54DocValuesProducer.SortedSetEntry readSortedSetEntry(IndexInput meta) throws java.io.IOException
java.io.IOExceptionpublic NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducerNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric in class DocValuesProducerjava.io.IOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic java.util.Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountableAccountablespublic void checkIntegrity()
throws java.io.IOException
DocValuesProducerNote 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 DocValuesProducerjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectLongValues getNumeric(Lucene54DocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOExceptionpublic BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
DocValuesProducerBinaryDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary in class DocValuesProducerjava.io.IOExceptionprivate BinaryDocValues getFixedBinary(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOExceptionprivate BinaryDocValues getVariableBinary(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOExceptionprivate MonotonicBlockPackedReader getIntervalInstance(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOExceptionprivate Lucene54DocValuesProducer.ReverseTermsIndex getReverseIndexInstance(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOExceptionprivate BinaryDocValues getCompressedBinary(FieldInfo field, Lucene54DocValuesProducer.BinaryEntry bytes) throws java.io.IOException
java.io.IOExceptionpublic SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted in class DocValuesProducerjava.io.IOExceptionprivate LongValues getOrdIndexInstance(FieldInfo field, Lucene54DocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOExceptionpublic SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedNumeric in class DocValuesProducerjava.io.IOExceptionpublic SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedSetDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet in class DocValuesProducerjava.io.IOExceptionprivate SortedSetDocValues getSortedSetWithAddresses(FieldInfo field) throws java.io.IOException
java.io.IOExceptionprivate SortedSetDocValues getSortedSetTable(FieldInfo field, Lucene54DocValuesProducer.SortedSetEntry ss) throws java.io.IOException
java.io.IOExceptionprivate Bits getLiveBits(long offset, int count) throws java.io.IOException
java.io.IOExceptionprivate Lucene54DocValuesProducer.SparseBits getSparseLiveBits(Lucene54DocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOExceptionpublic Bits getDocsWithField(FieldInfo field) throws java.io.IOException
DocValuesProducerBits 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 DocValuesProducerjava.io.IOExceptionpublic DocValuesProducer getMergeInstance() throws java.io.IOException
DocValuesProducer
The default implementation returns this
getMergeInstance in class DocValuesProducerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException