public abstract class DocValuesProducer extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
DocValuesProducer.SortedDocsWithField
A simple implementation of
getDocsWithField(org.apache.lucene.index.FieldInfo) that
returns true if a document has an ordinal >= 0 |
static class |
DocValuesProducer.SortedSetDocsWithField
A simple implementation of
getDocsWithField(org.apache.lucene.index.FieldInfo) that
returns true if a document has any ordinals. |
Modifier | Constructor and Description |
---|---|
protected |
DocValuesProducer()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
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. |
abstract NumericDocValues |
getNumeric(FieldInfo field)
Returns
NumericDocValues for this field. |
abstract SortedDocValues |
getSorted(FieldInfo field)
Returns
SortedDocValues for this field. |
abstract SortedSetDocValues |
getSortedSet(FieldInfo field)
Returns
SortedSetDocValues for this field. |
abstract long |
ramBytesUsed()
Returns approximate RAM bytes used
|
protected 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.IOException
public 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.IOException
public 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.IOException
public 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.IOException
public 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.IOException
public abstract long ramBytesUsed()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.