|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.codecs.DocValuesProducer
public abstract class DocValuesProducer
Abstract API that produces numeric, binary and sorted docvalues.
| Nested Class Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
DocValuesProducer()
Sole constructor. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Constructor Detail |
|---|
protected DocValuesProducer()
| Method Detail |
|---|
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.
IOExceptionpublic abstract long ramBytesUsed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||