Package org.apache.lucene.codecs
Class DocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
- Direct Known Subclasses:
DirectDocValuesProducer,EmptyDocValuesProducer,Lucene70DocValuesProducer,Lucene80DocValuesProducer,PerFieldDocValuesFormat.FieldsReader,SegmentDocValuesProducer,SimpleTextDocValuesReader
Abstract API that produces numeric, binary, sorted, sortedset,
and sortednumeric docvalues.
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidChecks consistency of this producerabstract BinaryDocValuesReturnsBinaryDocValuesfor this field.Returns an instance optimized for merging.abstract NumericDocValuesgetNumeric(FieldInfo field) ReturnsNumericDocValuesfor this field.abstract SortedDocValuesReturnsSortedDocValuesfor this field.abstract SortedNumericDocValuesgetSortedNumeric(FieldInfo field) ReturnsSortedNumericDocValuesfor this field.abstract SortedSetDocValuesgetSortedSet(FieldInfo field) ReturnsSortedSetDocValuesfor this field.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
-
Constructor Details
-
DocValuesProducer
protected DocValuesProducer()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
getNumeric
ReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getBinary
ReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSorted
ReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSortedNumeric
ReturnsSortedNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSortedSet
ReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
checkIntegrity
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.
- Throws:
IOException
-
getMergeInstance
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledgetMergeInstance().The default implementation returns
this
-