Class Lucene45DocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer
- All Implemented Interfaces:
Closeable
,AutoCloseable
reader for
Lucene45DocValuesFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
metadata entry for a binary docvalues fieldprotected static class
metadata entry for a numeric docvalues fieldprotected static class
metadata entry for a sorted-set docvalues fieldNested classes/interfaces inherited from class org.apache.lucene.codecs.DocValuesProducer
DocValuesProducer.SortedDocsWithField, DocValuesProducer.SortedSetDocsWithField
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Lucene45DocValuesProducer
(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) expert: instantiates a new reader -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected MonotonicBlockPackedReader
getAddressInstance
(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes) returns an address instance for variable-length binary values.ReturnsBinaryDocValues
for this field.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.protected MonotonicBlockPackedReader
getIntervalInstance
(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes) returns an address instance for prefix-compressed binary values.getNumeric
(FieldInfo field) ReturnsNumericDocValues
for this field.protected MonotonicBlockPackedReader
getOrdIndexInstance
(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.NumericEntry entry) returns an address instance for sortedset ordinal listsReturnsSortedDocValues
for this field.getSortedSet
(FieldInfo field) ReturnsSortedSetDocValues
for this field.long
Returns approximate RAM bytes used
-
Constructor Details
-
Lucene45DocValuesProducer
protected Lucene45DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException expert: instantiates a new reader- Throws:
IOException
-
-
Method Details
-
getNumeric
Description copied from class:DocValuesProducer
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNumeric
in classDocValuesProducer
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from class:DocValuesProducer
Returns approximate RAM bytes used- Specified by:
ramBytesUsed
in classDocValuesProducer
-
getBinary
Description copied from class:DocValuesProducer
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getBinary
in classDocValuesProducer
- Throws:
IOException
-
getAddressInstance
protected MonotonicBlockPackedReader getAddressInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes) throws IOException returns an address instance for variable-length binary values.- Throws:
IOException
-
getIntervalInstance
protected MonotonicBlockPackedReader getIntervalInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes) throws IOException returns an address instance for prefix-compressed binary values.- Throws:
IOException
-
getSorted
Description copied from class:DocValuesProducer
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSorted
in classDocValuesProducer
- Throws:
IOException
-
getOrdIndexInstance
protected MonotonicBlockPackedReader getOrdIndexInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.NumericEntry entry) throws IOException returns an address instance for sortedset ordinal lists- Throws:
IOException
-
getSortedSet
Description copied from class:DocValuesProducer
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedSet
in classDocValuesProducer
- Throws:
IOException
-
getDocsWithField
Description copied from class:DocValuesProducer
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.- Specified by:
getDocsWithField
in classDocValuesProducer
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-