public static class SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer extends PerDocConsumer
FOR RECREATIONAL USE ONLY
| Modifier and Type | Field and Description |
|---|---|
protected String |
segmentSuffix |
protected PerDocWriteState |
state |
| Constructor and Description |
|---|
SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer(PerDocWriteState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Called during indexing if the indexing session is aborted due to a unrecoverable exception.
|
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. |
void |
close() |
protected DocValues |
getDocValuesForMerge(AtomicReader reader,
FieldInfo info)
|
protected DocValues.Type |
getDocValuesType(FieldInfo info)
|
mergeprotected final PerDocWriteState state
protected final String segmentSuffix
public SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer(PerDocWriteState state)
protected DocValues getDocValuesForMerge(AtomicReader reader, FieldInfo info) throws IOException
PerDocConsumerDocValues 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.
getDocValuesForMerge in class PerDocConsumerIOExceptionprotected boolean canMerge(FieldInfo info)
PerDocConsumertrue 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.
canMerge in class PerDocConsumerprotected DocValues.Type getDocValuesType(FieldInfo info)
PerDocConsumerDocValues 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.
getDocValuesType in class PerDocConsumerpublic void abort()
PerDocConsumerpublic void close()
throws IOException
IOExceptionpublic DocValuesConsumer addValuesField(DocValues.Type type, FieldInfo field) throws IOException
PerDocConsumeraddValuesField in class PerDocConsumerIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.