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
- 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>fieldsprivate 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 voidcheckIntegrity()Checks consistency of this producervoidclose()BinaryDocValuesgetBinary(FieldInfo field)ReturnsBinaryDocValuesfor this field.DocValuesProducergetMergeInstance()Returns an instance optimized for merging.NumericDocValuesgetNumeric(FieldInfo field)ReturnsNumericDocValuesfor this field.SortedDocValuesgetSorted(FieldInfo field)ReturnsSortedDocValuesfor this field.SortedNumericDocValuesgetSortedNumeric(FieldInfo field)ReturnsSortedNumericDocValuesfor this field.SortedSetDocValuesgetSortedSet(FieldInfo field)ReturnsSortedSetDocValuesfor this field.java.lang.StringtoString()
-
-
-
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:DocValuesProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.NUMERIC. The return value is nevernull.- Specified by:
getNumericin classDocValuesProducer- Throws:
java.io.IOException
-
getBinary
public BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.BINARY. The return value is nevernull.- Specified by:
getBinaryin classDocValuesProducer- Throws:
java.io.IOException
-
getSorted
public SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED. The return value is nevernull.- Specified by:
getSortedin classDocValuesProducer- Throws:
java.io.IOException
-
getSortedNumeric
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsSortedNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_NUMERIC. The return value is nevernull.- Specified by:
getSortedNumericin classDocValuesProducer- Throws:
java.io.IOException
-
getSortedSet
public SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
Description copied from class:DocValuesProducerReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_SET. The return value is nevernull.- Specified by:
getSortedSetin classDocValuesProducer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
checkIntegrity
public void checkIntegrity() throws java.io.IOExceptionDescription copied from class:DocValuesProducerChecks 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:
checkIntegrityin classDocValuesProducer- Throws:
java.io.IOException
-
getMergeInstance
public DocValuesProducer getMergeInstance()
Description copied from class:DocValuesProducerReturns an instance optimized for merging. This instance may only be consumed in the thread that calledDocValuesProducer.getMergeInstance().The default implementation returns
this- Overrides:
getMergeInstancein classDocValuesProducer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-