|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.index.DocValues
org.apache.lucene.index.MultiDocValues
public class MultiDocValues
A wrapper for CompositeIndexReader providing access to per segment
DocValues
NOTE: for multi readers, you'll get better
performance by gathering the sub readers using
IndexReader.getTopReaderContext() to get the
atomic leaves and then operate per-AtomicReader,
instead of using this class.
| Nested Class Summary | |
|---|---|
static class |
MultiDocValues.DocValuesSlice
|
static class |
MultiDocValues.EmptyDocValues
|
static class |
MultiDocValues.EmptyFixedDocValues
|
| Nested classes/interfaces inherited from class org.apache.lucene.index.DocValues |
|---|
DocValues.SortedSource, DocValues.Source, DocValues.SourceCache, DocValues.Type |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.index.DocValues |
|---|
EMPTY_ARRAY |
| Method Summary | |
|---|---|
DocValues.Source |
getDirectSource()
Returns a disk resident DocValues.Source instance. |
static DocValues |
getDocValues(IndexReader r,
String field)
Returns a single DocValues instance for this field, merging
their values on the fly. |
static DocValues |
getNormDocValues(IndexReader r,
String field)
Returns a single DocValues instance for this norms field, merging
their values on the fly. |
DocValues.Type |
getType()
Returns the DocValues.Type of this DocValues instance |
int |
getValueSize()
Returns the size per value in bytes or -1 iff size per value
is variable. |
DocValues.Source |
load()
Loads a new DocValues.Source instance for this DocValues field
instance. |
| Methods inherited from class org.apache.lucene.index.DocValues |
|---|
close, getDefaultSortedSource, getDefaultSource, getSource, setCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DocValues getDocValues(IndexReader r,
String field)
throws IOException
DocValues instance for this field, merging
their values on the fly.
NOTE: this is a slow way to access DocValues. It's better to get the sub-readers and iterate through them yourself.
IOException
public static DocValues getNormDocValues(IndexReader r,
String field)
throws IOException
DocValues instance for this norms field, merging
their values on the fly.
NOTE: this is a slow way to access DocValues. It's better to get the sub-readers and iterate through them yourself.
IOException
public DocValues.Source load()
throws IOException
DocValuesDocValues.Source instance for this DocValues field
instance. Source instances returned from this method are not cached. It is
the callers responsibility to maintain the instance and release its
resources once the source is not needed anymore.
For managed DocValues.Source instances see DocValues.getSource().
load in class DocValuesIOExceptionDocValues.getSource(),
DocValues.setCache(SourceCache)public DocValues.Type getType()
DocValuesDocValues.Type of this DocValues instance
getType in class DocValuespublic int getValueSize()
DocValues-1 iff size per value
is variable.
getValueSize in class DocValues-1 iff size per value
is variable.
public DocValues.Source getDirectSource()
throws IOException
DocValuesDocValues.Source instance. Direct Sources are not
cached in the DocValues.SourceCache and should not be shared between threads.
getDirectSource in class DocValuesIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||