public static class Lucene40NormsFormat.Lucene40NormsDocValuesConsumer extends Lucene40DocValuesConsumer
Lucene40DocValuesFormat
DOC_VALUES_SEGMENT_SUFFIX
context, DATA_EXTENSION, INDEX_EXTENSION, segmentName
Constructor and Description |
---|
Lucene40NormsFormat.Lucene40NormsDocValuesConsumer(PerDocWriteState state,
String segmentSuffix)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canMerge(FieldInfo info)
Returns
true iff the given field can be merged ie. |
protected DocValues |
getDocValuesForMerge(AtomicReader reader,
FieldInfo info)
|
protected DocValues.Type |
getDocValuesType(FieldInfo info)
|
abort, close, getDirectory
addValuesField, getComparator
merge
public Lucene40NormsFormat.Lucene40NormsDocValuesConsumer(PerDocWriteState state, String segmentSuffix)
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
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.