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 SummaryNested 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.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
Constructor Details- 
DocValuesProducerprotected DocValuesProducer()Sole constructor. (For invocation by subclass constructors, typically implicit.)
 
- 
- 
Method Details- 
getNumericReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
- IOException
 
- 
getBinaryReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
- IOException
 
- 
getSortedReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
- IOException
 
- 
getSortedSetReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Throws:
- IOException
 
- 
getDocsWithFieldReturns 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
 
- 
ramBytesUsedpublic abstract long ramBytesUsed()Returns approximate RAM bytes used
 
-