Class PerFieldDocValuesFormat.FieldsReader
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat.FieldsReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Accountable
- Enclosing class:
- PerFieldDocValuesFormat
private class PerFieldDocValuesFormat.FieldsReader extends DocValuesProducer
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,DocValuesProducer>
fields
private java.util.Map<java.lang.String,DocValuesProducer>
formats
-
Constructor Summary
Constructors Constructor Description FieldsReader(PerFieldDocValuesFormat.FieldsReader other)
FieldsReader(SegmentReadState readState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this producervoid
close()
BinaryDocValues
getBinary(FieldInfo field)
ReturnsBinaryDocValues
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)
ReturnsNumericDocValues
for this field.SortedDocValues
getSorted(FieldInfo field)
ReturnsSortedDocValues
for this field.SortedNumericDocValues
getSortedNumeric(FieldInfo field)
ReturnsSortedNumericDocValues
for this field.SortedSetDocValues
getSortedSet(FieldInfo field)
ReturnsSortedSetDocValues
for this field.long
ramBytesUsed()
Return the memory usage of this object in bytes.java.lang.String
toString()
-
-
-
Field Detail
-
fields
private final java.util.Map<java.lang.String,DocValuesProducer> fields
-
formats
private final java.util.Map<java.lang.String,DocValuesProducer> formats
-
-
Constructor Detail
-
FieldsReader
FieldsReader(PerFieldDocValuesFormat.FieldsReader other)
-
FieldsReader
public FieldsReader(SegmentReadState readState) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getNumeric
public NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducer
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNumeric
in classDocValuesProducer
- Throws:
java.io.IOException
-
getBinary
public BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducer
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getBinary
in classDocValuesProducer
- Throws:
java.io.IOException
-
getSorted
public SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducer
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSorted
in classDocValuesProducer
- Throws:
java.io.IOException
-
getSortedNumeric
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducer
ReturnsSortedNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedNumeric
in classDocValuesProducer
- Throws:
java.io.IOException
-
getSortedSet
public SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducer
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedSet
in classDocValuesProducer
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-
getChildResources
public java.util.Collection<Accountable> getChildResources()
Description copied from interface:Accountable
Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- See Also:
Accountables
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
Description copied from class:DocValuesProducer
Checks consistency of this producerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrity
in classDocValuesProducer
- Throws:
java.io.IOException
-
getMergeInstance
public DocValuesProducer getMergeInstance()
Description copied from class:DocValuesProducer
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledDocValuesProducer.getMergeInstance()
.The default implementation returns
this
- Overrides:
getMergeInstance
in classDocValuesProducer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-