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.CloseableAbstract API that produces numeric, binary and sorted docvalues. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocValuesProducer.SortedDocsWithFieldA simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)that returnstrueif a document has an ordinal >= 0static classDocValuesProducer.SortedSetDocsWithFieldA simple implementation ofgetDocsWithField(org.apache.lucene.index.FieldInfo)that returnstrueif a document has any ordinals. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract BinaryDocValuesgetBinary(FieldInfo field)ReturnsBinaryDocValuesfor 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 SortedDocValuesgetSorted(FieldInfo field)ReturnsSortedDocValuesfor this field.abstract SortedSetDocValuesgetSortedSet(FieldInfo field)ReturnsSortedSetDocValuesfor this field.abstract longramBytesUsed()Returns approximate RAM bytes used 
 - 
 
- 
- 
Method Detail
- 
getNumeric
public abstract NumericDocValues getNumeric(FieldInfo field) throws java.io.IOException
ReturnsNumericDocValuesfor 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
ReturnsBinaryDocValuesfor 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
ReturnsSortedDocValuesfor 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
ReturnsSortedSetDocValuesfor 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 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:
 java.io.IOException
 
- 
ramBytesUsed
public abstract long ramBytesUsed()
Returns approximate RAM bytes used 
 - 
 
 -