public abstract class DocValuesProducer extends Object implements Closeable, Accountable
| Modifier | Constructor and Description |
|---|---|
protected |
DocValuesProducer()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkIntegrity()
Checks consistency of this producer
|
abstract BinaryDocValues |
getBinary(FieldInfo field)
Returns
BinaryDocValues for this field. |
abstract 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. |
DocValuesProducer |
getMergeInstance()
Returns an instance optimized for merging.
|
abstract NumericDocValues |
getNumeric(FieldInfo field)
Returns
NumericDocValues for this field. |
abstract SortedDocValues |
getSorted(FieldInfo field)
Returns
SortedDocValues for this field. |
abstract SortedNumericDocValues |
getSortedNumeric(FieldInfo field)
Returns
SortedNumericDocValues for this field. |
abstract SortedSetDocValues |
getSortedSet(FieldInfo field)
Returns
SortedSetDocValues for this field. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResources, ramBytesUsedprotected DocValuesProducer()
public abstract NumericDocValues getNumeric(FieldInfo field) throws IOException
NumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.IOExceptionpublic abstract BinaryDocValues getBinary(FieldInfo field) throws IOException
BinaryDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.IOExceptionpublic abstract SortedDocValues getSorted(FieldInfo field) throws IOException
SortedDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.IOExceptionpublic abstract SortedNumericDocValues getSortedNumeric(FieldInfo field) throws IOException
SortedNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.IOExceptionpublic abstract SortedSetDocValues getSortedSet(FieldInfo field) throws IOException
SortedSetDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.IOExceptionpublic abstract Bits getDocsWithField(FieldInfo field) throws IOException
Bits 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.IOExceptionpublic abstract void checkIntegrity()
throws IOException
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
IOExceptionpublic DocValuesProducer getMergeInstance() throws IOException
The default implementation returns this
IOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.