Package org.apache.lucene.codecs
Class DocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
Lucene45DocValuesProducer
public abstract class DocValuesProducer extends Object implements Closeable
Abstract API that produces numeric, binary and sorted docvalues.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocValuesProducer.SortedDocsWithField
A simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)
that returnstrue
if a document has an ordinal >= 0static class
DocValuesProducer.SortedSetDocsWithField
A simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)
that returnstrue
if a document has any ordinals.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DocValuesProducer()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract BinaryDocValues
getBinary(FieldInfo field)
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
getSorted(FieldInfo field)
ReturnsSortedDocValues
for this field.abstract SortedSetDocValues
getSortedSet(FieldInfo field)
ReturnsSortedSetDocValues
for this field.abstract long
ramBytesUsed()
Returns approximate RAM bytes used
-
-
-
Method Detail
-
getNumeric
public abstract NumericDocValues getNumeric(FieldInfo field) throws IOException
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getBinary
public abstract BinaryDocValues getBinary(FieldInfo field) throws IOException
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSorted
public abstract SortedDocValues getSorted(FieldInfo field) throws IOException
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getSortedSet
public abstract SortedSetDocValues getSortedSet(FieldInfo field) throws IOException
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
IOException
-
getDocsWithField
public abstract Bits getDocsWithField(FieldInfo field) throws IOException
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
-
-