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.IOException
private DirectDocValuesProducer.NumericEntry readNumericEntry(IndexInput meta) throws java.io.IOException
java.io.IOException
private DirectDocValuesProducer.BinaryEntry readBinaryEntry(IndexInput meta) throws java.io.IOException
java.io.IOException
private DirectDocValuesProducer.SortedEntry readSortedEntry(IndexInput meta) throws java.io.IOException
java.io.IOException
private DirectDocValuesProducer.SortedSetEntry readSortedSetEntry(IndexInput meta, boolean singleton) throws java.io.IOException
java.io.IOException
private DirectDocValuesProducer.SortedNumericEntry readSortedNumericEntry(IndexInput meta, boolean singleton) throws java.io.IOException
java.io.IOException
private int readFields(IndexInput meta, FieldInfos infos) throws java.io.IOException
java.io.IOException
public long ramBytesUsed()
Accountable
public java.util.Collection<Accountable> getChildResources()
Accountable
Accountables
public java.lang.String toString()
toString
in class java.lang.Object
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 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
private DirectDocValuesProducer.NumericRawValues loadNumeric(DirectDocValuesProducer.NumericEntry entry) throws java.io.IOException
java.io.IOException
private LegacyBinaryDocValues getLegacyBinary(FieldInfo field) 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 DirectDocValuesProducer.BinaryRawValues loadBinary(DirectDocValuesProducer.BinaryEntry entry) 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 LegacySortedDocValues newSortedInstance(LegacyNumericDocValues docToOrd, LegacyBinaryDocValues values, int count)
private DirectDocValuesProducer.SortedRawValues loadSorted(FieldInfo field) 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
private DirectDocValuesProducer.SortedNumericRawValues loadSortedNumeric(DirectDocValuesProducer.SortedNumericEntry entry) throws java.io.IOException
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 DirectDocValuesProducer.SortedSetRawValues loadSortedSet(DirectDocValuesProducer.SortedSetEntry entry) throws java.io.IOException
java.io.IOException
private Bits getMissingBits(FieldInfo field, long offset, long length) throws java.io.IOException
java.io.IOException
public DocValuesProducer getMergeInstance()
DocValuesProducer
DocValuesProducer.getMergeInstance()
.
The default implementation returns this
getMergeInstance
in class DocValuesProducer
public void close() throws java.io.IOException
java.io.IOException