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.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 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.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.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.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic long ramBytesUsed()
Accountablepublic java.util.Collection<Accountable> getChildResources()
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 DocValuesProducer getMergeInstance()
DocValuesProducerDocValuesProducer.getMergeInstance().
The default implementation returns this
getMergeInstance in class DocValuesProducerpublic java.lang.String toString()
toString in class java.lang.Object