|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.codecs.PerDocConsumer
org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer
public static class SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer
Writes plain-text norms.
FOR RECREATIONAL USE ONLY
Field Summary | |
---|---|
protected String |
segmentSuffix
|
protected PerDocWriteState |
state
|
Constructor Summary | |
---|---|
SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer(PerDocWriteState state)
|
Method Summary | |
---|---|
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)
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 . |
Methods inherited from class org.apache.lucene.codecs.PerDocConsumer |
---|
merge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final PerDocWriteState state
protected final String segmentSuffix
Constructor Detail |
---|
public SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer(PerDocWriteState state)
Method Detail |
---|
protected DocValues getDocValuesForMerge(AtomicReader reader, FieldInfo info) throws IOException
PerDocConsumer
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.
getDocValuesForMerge
in class PerDocConsumer
IOException
protected boolean canMerge(FieldInfo info)
PerDocConsumer
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.
canMerge
in class PerDocConsumer
protected DocValues.Type getDocValuesType(FieldInfo info)
PerDocConsumer
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.
getDocValuesType
in class PerDocConsumer
public void abort()
PerDocConsumer
public void close() throws IOException
IOException
public DocValuesConsumer addValuesField(DocValues.Type type, FieldInfo field) throws IOException
PerDocConsumer
addValuesField
in class PerDocConsumer
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |