class DirectDocValuesProducer extends DocValuesProducer
DirectDocValuesFormat| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
DirectDocValuesProducer.BinaryEntry |
(package private) static class |
DirectDocValuesProducer.BinaryRawValues |
(package private) static class |
DirectDocValuesProducer.FSTEntry |
(package private) static class |
DirectDocValuesProducer.NumericEntry |
(package private) static class |
DirectDocValuesProducer.NumericRawValues |
(package private) static class |
DirectDocValuesProducer.SortedEntry |
(package private) static class |
DirectDocValuesProducer.SortedNumericEntry |
(package private) static class |
DirectDocValuesProducer.SortedNumericRawValues |
(package private) static class |
DirectDocValuesProducer.SortedRawValues |
(package private) static class |
DirectDocValuesProducer.SortedSetEntry |
(package private) static class |
DirectDocValuesProducer.SortedSetRawValues |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,DirectDocValuesProducer.BinaryEntry> |
binaries |
private java.util.Map<java.lang.String,DirectDocValuesProducer.BinaryRawValues> |
binaryInstances |
(package private) static byte |
BYTES |
private IndexInput |
data |
private java.util.Map<java.lang.String,FixedBitSet> |
docsWithFieldInstances |
private int |
maxDoc |
private boolean |
merging |
(package private) static byte |
NUMBER |
private int |
numEntries |
private java.util.Map<java.lang.String,DirectDocValuesProducer.NumericRawValues> |
numericInstances |
private java.util.Map<java.lang.String,DirectDocValuesProducer.NumericEntry> |
numerics |
private java.util.concurrent.atomic.AtomicLong |
ramBytesUsed |
(package private) static byte |
SORTED |
(package private) static byte |
SORTED_NUMERIC |
(package private) static byte |
SORTED_NUMERIC_SINGLETON |
(package private) static byte |
SORTED_SET |
(package private) static byte |
SORTED_SET_SINGLETON |
private java.util.Map<java.lang.String,DirectDocValuesProducer.SortedRawValues> |
sortedInstances |
private java.util.Map<java.lang.String,DirectDocValuesProducer.SortedNumericRawValues> |
sortedNumericInstances |
private java.util.Map<java.lang.String,DirectDocValuesProducer.SortedNumericEntry> |
sortedNumerics |
private java.util.Map<java.lang.String,DirectDocValuesProducer.SortedEntry> |
sorteds |
private java.util.Map<java.lang.String,DirectDocValuesProducer.SortedSetRawValues> |
sortedSetInstances |
private java.util.Map<java.lang.String,DirectDocValuesProducer.SortedSetEntry> |
sortedSets |
private int |
version |
(package private) static int |
VERSION_CURRENT |
(package private) static int |
VERSION_START |
| Constructor and Description |
|---|
DirectDocValuesProducer(DirectDocValuesProducer original) |
DirectDocValuesProducer(SegmentReadState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension) |
private final java.util.Map<java.lang.String,DirectDocValuesProducer.NumericEntry> numerics
private final java.util.Map<java.lang.String,DirectDocValuesProducer.BinaryEntry> binaries
private final java.util.Map<java.lang.String,DirectDocValuesProducer.SortedEntry> sorteds
private final java.util.Map<java.lang.String,DirectDocValuesProducer.SortedSetEntry> sortedSets
private final java.util.Map<java.lang.String,DirectDocValuesProducer.SortedNumericEntry> sortedNumerics
private final IndexInput data
private final java.util.Map<java.lang.String,DirectDocValuesProducer.NumericRawValues> numericInstances
private final java.util.Map<java.lang.String,DirectDocValuesProducer.BinaryRawValues> binaryInstances
private final java.util.Map<java.lang.String,DirectDocValuesProducer.SortedRawValues> sortedInstances
private final java.util.Map<java.lang.String,DirectDocValuesProducer.SortedSetRawValues> sortedSetInstances
private final java.util.Map<java.lang.String,DirectDocValuesProducer.SortedNumericRawValues> sortedNumericInstances
private final java.util.Map<java.lang.String,FixedBitSet> docsWithFieldInstances
private final int numEntries
private final int maxDoc
private final java.util.concurrent.atomic.AtomicLong ramBytesUsed
private final int version
private final boolean merging
static final byte NUMBER
static final byte BYTES
static final byte SORTED
static final byte SORTED_SET
static final byte SORTED_SET_SINGLETON
static final byte SORTED_NUMERIC
static final byte SORTED_NUMERIC_SINGLETON
static final int VERSION_START
static final int VERSION_CURRENT
DirectDocValuesProducer(DirectDocValuesProducer original)
DirectDocValuesProducer(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 DirectDocValuesProducer.NumericEntry readNumericEntry(IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate DirectDocValuesProducer.BinaryEntry readBinaryEntry(IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate DirectDocValuesProducer.SortedEntry readSortedEntry(IndexInput meta) throws java.io.IOException
java.io.IOExceptionprivate DirectDocValuesProducer.SortedSetEntry readSortedSetEntry(IndexInput meta, boolean singleton) throws java.io.IOException
java.io.IOExceptionprivate DirectDocValuesProducer.SortedNumericEntry readSortedNumericEntry(IndexInput meta, boolean singleton) throws java.io.IOException
java.io.IOExceptionprivate int readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
java.io.IOExceptionpublic long ramBytesUsed()
Accountablepublic java.util.Collection<Accountable> getChildResources()
AccountableAccountablespublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 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.IOExceptionprivate DirectDocValuesProducer.NumericRawValues loadNumeric(DirectDocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOExceptionprivate LegacyBinaryDocValues getLegacyBinary(FieldInfo field) 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 DirectDocValuesProducer.BinaryRawValues loadBinary(DirectDocValuesProducer.BinaryEntry entry) 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 LegacySortedDocValues newSortedInstance(LegacyNumericDocValues docToOrd, LegacyBinaryDocValues values, int count)
private DirectDocValuesProducer.SortedRawValues loadSorted(FieldInfo field) 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.IOExceptionprivate DirectDocValuesProducer.SortedNumericRawValues loadSortedNumeric(DirectDocValuesProducer.SortedNumericEntry entry) throws java.io.IOException
java.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 DirectDocValuesProducer.SortedSetRawValues loadSortedSet(DirectDocValuesProducer.SortedSetEntry entry) throws java.io.IOException
java.io.IOExceptionprivate Bits getMissingBits(FieldInfo field, long offset, long length) throws java.io.IOException
java.io.IOExceptionpublic DocValuesProducer getMergeInstance()
DocValuesProducerDocValuesProducer.getMergeInstance().
The default implementation returns this
getMergeInstance in class DocValuesProducerpublic void close()
throws java.io.IOException
java.io.IOException