Package org.apache.lucene.codecs
Class DocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
Lucene45DocValuesProducer
public abstract class DocValuesProducer extends java.lang.Object implements java.io.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.
-
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 java.io.IOException
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
java.io.IOException
-
getBinary
public abstract BinaryDocValues getBinary(FieldInfo field) throws java.io.IOException
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
java.io.IOException
-
getSorted
public abstract SortedDocValues getSorted(FieldInfo field) throws java.io.IOException
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
java.io.IOException
-
getSortedSet
public abstract SortedSetDocValues getSortedSet(FieldInfo field) throws java.io.IOException
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
java.io.IOException
-
getDocsWithField
public abstract Bits getDocsWithField(FieldInfo field) throws java.io.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:
java.io.IOException
-
ramBytesUsed
public abstract long ramBytesUsed()
Returns approximate RAM bytes used
-
-