public class Lucene45DocValuesProducer extends DocValuesProducer implements Closeable
Lucene45DocValuesFormat| Modifier and Type | Class and Description |
|---|---|
protected static class |
Lucene45DocValuesProducer.BinaryEntry
metadata entry for a binary docvalues field
|
protected static class |
Lucene45DocValuesProducer.NumericEntry
metadata entry for a numeric docvalues field
|
protected static class |
Lucene45DocValuesProducer.SortedSetEntry
metadata entry for a sorted-set docvalues field
|
DocValuesProducer.SortedDocsWithField, DocValuesProducer.SortedSetDocsWithField| Modifier | Constructor and Description |
|---|---|
protected |
Lucene45DocValuesProducer(SegmentReadState state,
String dataCodec,
String dataExtension,
String metaCodec,
String metaExtension)
expert: instantiates a new reader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected MonotonicBlockPackedReader |
getAddressInstance(IndexInput data,
FieldInfo field,
Lucene45DocValuesProducer.BinaryEntry bytes)
returns an address instance for variable-length binary values.
|
BinaryDocValues |
getBinary(FieldInfo field)
Returns
BinaryDocValues for this field. |
Bits |
getDocsWithField(FieldInfo field)
Returns a
Bits at the size of reader.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.
|
NumericDocValues |
getNumeric(FieldInfo field)
Returns
NumericDocValues for this field. |
protected MonotonicBlockPackedReader |
getOrdIndexInstance(IndexInput data,
FieldInfo field,
Lucene45DocValuesProducer.NumericEntry entry)
returns an address instance for sortedset ordinal lists
|
SortedDocValues |
getSorted(FieldInfo field)
Returns
SortedDocValues for this field. |
SortedSetDocValues |
getSortedSet(FieldInfo field)
Returns
SortedSetDocValues for this field. |
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
protected Lucene45DocValuesProducer(SegmentReadState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException
IOExceptionpublic NumericDocValues getNumeric(FieldInfo field) throws IOException
DocValuesProducerNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric in class DocValuesProducerIOExceptionpublic long ramBytesUsed()
DocValuesProducerramBytesUsed in class DocValuesProducerpublic BinaryDocValues getBinary(FieldInfo field) throws IOException
DocValuesProducerBinaryDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary in class DocValuesProducerIOExceptionprotected MonotonicBlockPackedReader getAddressInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes) throws IOException
IOExceptionprotected MonotonicBlockPackedReader getIntervalInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.BinaryEntry bytes) throws IOException
IOExceptionpublic SortedDocValues getSorted(FieldInfo field) throws IOException
DocValuesProducerSortedDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted in class DocValuesProducerIOExceptionprotected MonotonicBlockPackedReader getOrdIndexInstance(IndexInput data, FieldInfo field, Lucene45DocValuesProducer.NumericEntry entry) throws IOException
IOExceptionpublic SortedSetDocValues getSortedSet(FieldInfo field) throws IOException
DocValuesProducerSortedSetDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet in class DocValuesProducerIOExceptionpublic Bits getDocsWithField(FieldInfo field) throws IOException
DocValuesProducerBits at the size of reader.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.getDocsWithField in class DocValuesProducerIOExceptionpublic void close()
throws IOException
close in interface CloseableIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.