private class PerFieldDocValuesFormat.FieldsReader extends DocValuesProducer
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,DocValuesProducer> |
fields |
private java.util.Map<java.lang.String,DocValuesProducer> |
formats |
Constructor and Description |
---|
FieldsReader(PerFieldDocValuesFormat.FieldsReader other) |
FieldsReader(SegmentReadState readState) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this producer
|
void |
close() |
BinaryDocValues |
getBinary(FieldInfo field)
Returns
BinaryDocValues for this field. |
java.util.Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
DocValuesProducer |
getMergeInstance()
Returns an instance optimized for merging.
|
NumericDocValues |
getNumeric(FieldInfo field)
Returns
NumericDocValues for this field. |
SortedDocValues |
getSorted(FieldInfo field)
Returns
SortedDocValues for this field. |
SortedNumericDocValues |
getSortedNumeric(FieldInfo field)
Returns
SortedNumericDocValues for this field. |
SortedSetDocValues |
getSortedSet(FieldInfo field)
Returns
SortedSetDocValues for this field. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
java.lang.String |
toString() |
private final java.util.Map<java.lang.String,DocValuesProducer> fields
private final java.util.Map<java.lang.String,DocValuesProducer> formats
FieldsReader(PerFieldDocValuesFormat.FieldsReader other)
public FieldsReader(SegmentReadState readState) 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 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
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
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
public void close() throws java.io.IOException
java.io.IOException
public long ramBytesUsed()
Accountable
public java.util.Collection<Accountable> getChildResources()
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 DocValuesProducer getMergeInstance()
DocValuesProducer
DocValuesProducer.getMergeInstance()
.
The default implementation returns this
getMergeInstance
in class DocValuesProducer
public java.lang.String toString()
toString
in class java.lang.Object