|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.codecs.PerDocConsumer
public abstract class PerDocConsumer
Abstract API that consumes per document values. Concrete implementations of this convert field values into a Codec specific format during indexing.
The PerDocConsumer
API is accessible through the
PostingsFormat
- API providing per field consumers and producers for inverted
data (terms, postings) as well as per-document data.
Constructor Summary | |
---|---|
protected |
PerDocConsumer()
Sole constructor. |
Method Summary | |
---|---|
abstract void |
abort()
Called during indexing if the indexing session is aborted due to a unrecoverable exception. |
abstract DocValuesConsumer |
addValuesField(DocValues.Type type,
FieldInfo field)
Adds a new DocValuesField |
protected boolean |
canMerge(FieldInfo info)
Returns true iff the given field can be merged ie. |
abstract void |
close()
|
protected DocValues |
getDocValuesForMerge(AtomicReader reader,
FieldInfo info)
Returns a DocValues instance for merging from the given reader for the given
FieldInfo . |
protected DocValues.Type |
getDocValuesType(FieldInfo info)
Returns the DocValues DocValues.Type for the given FieldInfo . |
void |
merge(MergeState mergeState)
Consumes and merges the given PerDocProducer producer
into this consumers format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PerDocConsumer()
Method Detail |
---|
public abstract DocValuesConsumer addValuesField(DocValues.Type type, FieldInfo field) throws IOException
IOException
public void merge(MergeState mergeState) throws IOException
PerDocProducer
producer
into this consumers format.
IOException
protected DocValues getDocValuesForMerge(AtomicReader reader, FieldInfo info) throws IOException
DocValues
instance for merging from the given reader for the given
FieldInfo
. This method is used for merging and uses
AtomicReader.docValues(String)
by default.
To enable DocValues
merging for different DocValues
than
the default override this method accordingly.
IOException
protected boolean canMerge(FieldInfo info)
true
iff the given field can be merged ie. has DocValues
.
By default this method uses FieldInfo.hasDocValues()
.
To enable DocValues
merging for different DocValues
than
the default override this method accordingly.
protected DocValues.Type getDocValuesType(FieldInfo info)
DocValues
DocValues.Type
for the given FieldInfo
.
By default this method uses FieldInfo.getDocValuesType()
.
To enable DocValues
merging for different DocValues
than
the default override this method accordingly.
public abstract void abort()
public abstract void close() throws IOException
close
in interface Closeable
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |