Class Lucene45DocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class Lucene45DocValuesProducer extends DocValuesProducer implements Closeable
reader forLucene45DocValuesFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classLucene45DocValuesProducer.BinaryEntrymetadata entry for a binary docvalues fieldprotected static classLucene45DocValuesProducer.NumericEntrymetadata entry for a numeric docvalues fieldprotected static classLucene45DocValuesProducer.SortedSetEntrymetadata entry for a sorted-set docvalues field-
Nested classes/interfaces inherited from class org.apache.lucene.codecs.DocValuesProducer
DocValuesProducer.SortedDocsWithField, DocValuesProducer.SortedSetDocsWithField
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLucene45DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension)expert: instantiates a new reader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected MonotonicBlockPackedReadergetAddressInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes)returns an address instance for variable-length binary values.BinaryDocValuesgetBinary(FieldInfo field)ReturnsBinaryDocValuesfor this field.BitsgetDocsWithField(FieldInfo field)Returns aBitsat the size ofreader.maxDoc(), with turned on bits for each docid that does have a value for this field.protected MonotonicBlockPackedReadergetIntervalInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes)returns an address instance for prefix-compressed binary values.NumericDocValuesgetNumeric(FieldInfo field)ReturnsNumericDocValuesfor this field.protected MonotonicBlockPackedReadergetOrdIndexInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.NumericEntry entry)returns an address instance for sortedset ordinal listsSortedDocValuesgetSorted(FieldInfo field)ReturnsSortedDocValuesfor this field.SortedSetDocValuesgetSortedSet(FieldInfo field)ReturnsSortedSetDocValuesfor this field.longramBytesUsed()Returns approximate RAM bytes used
-
-
-
Constructor Detail
-
Lucene45DocValuesProducer
protected Lucene45DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException
expert: instantiates a new reader- Throws:
IOException
-
-
Method Detail
-
getNumeric
public NumericDocValues getNumeric(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNumericin classDocValuesProducer- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from class:DocValuesProducerReturns approximate RAM bytes used- Specified by:
ramBytesUsedin classDocValuesProducer
-
getBinary
public BinaryDocValues getBinary(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getBinaryin 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
public SortedDocValues getSorted(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedin 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
public SortedSetDocValues getSortedSet(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedSetin classDocValuesProducer- Throws:
IOException
-
getDocsWithField
public Bits getDocsWithField(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturns 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.- Specified by:
getDocsWithFieldin classDocValuesProducer- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-