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 class
A simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)
that returnstrue
if a document has an ordinal >= 0static class
A simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)
that returnstrue
if a document has any ordinals. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BinaryDocValues
ReturnsBinaryDocValues
for this field.abstract Bits
getDocsWithField
(FieldInfo field) Returns aBits
at the size ofreader.maxDoc()
, with turned on bits for each docid that does have a value for this field.abstract NumericDocValues
getNumeric
(FieldInfo field) ReturnsNumericDocValues
for this field.abstract SortedDocValues
ReturnsSortedDocValues
for this field.abstract SortedSetDocValues
getSortedSet
(FieldInfo field) ReturnsSortedSetDocValues
for this field.abstract long
Returns approximate RAM bytes used
-
Constructor Details
-
DocValuesProducer
protected DocValuesProducer()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
getNumeric
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getBinary
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSorted
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSortedSet
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getDocsWithField
Returns aBits
at 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
-