Package org.apache.lucene.codecs
Class DocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
Lucene45DocValuesProducer
Abstract API that produces numeric, binary and
sorted docvalues.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)that returnstrueif a document has an ordinal >= 0static classA simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)that returnstrueif a document has any ordinals. -
Method Summary
Modifier and TypeMethodDescriptionabstract BinaryDocValuesReturnsBinaryDocValuesfor this field.abstract BitsgetDocsWithField(FieldInfo field) Returns aBitsat the size ofreader.maxDoc(), with turned on bits for each docid that does have a value for this field.abstract NumericDocValuesgetNumeric(FieldInfo field) ReturnsNumericDocValuesfor this field.abstract SortedDocValuesReturnsSortedDocValuesfor this field.abstract SortedSetDocValuesgetSortedSet(FieldInfo field) ReturnsSortedSetDocValuesfor this field.abstract longReturns approximate RAM bytes used
-
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
-
getSortedSet
ReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getDocsWithField
Returns aBitsat the size ofreader.maxDoc(), with turned on bits for each docid that does have a value for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
ramBytesUsed
public abstract long ramBytesUsed()Returns approximate RAM bytes used
-