public static class SimpleTextNormsFormat.SimpleTextNormsConsumer extends DocValuesConsumer
FOR RECREATIONAL USE ONLY
| Constructor and Description |
|---|
SimpleTextNormsFormat.SimpleTextNormsConsumer(SegmentWriteState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryField(FieldInfo field,
Iterable<BytesRef> values)
Writes binary docvalues for a field.
|
void |
addNumericField(FieldInfo field,
Iterable<Number> values)
Writes numeric docvalues for a field.
|
void |
addSortedField(FieldInfo field,
Iterable<BytesRef> values,
Iterable<Number> docToOrd)
Writes pre-sorted binary docvalues for a field.
|
void |
addSortedSetField(FieldInfo field,
Iterable<BytesRef> values,
Iterable<Number> docToOrdCount,
Iterable<Number> ords)
Writes pre-sorted set docvalues for a field
|
void |
close() |
mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedSetFieldpublic SimpleTextNormsFormat.SimpleTextNormsConsumer(SegmentWriteState state) throws IOException
IOExceptionpublic void addNumericField(FieldInfo field, Iterable<Number> values) throws IOException
DocValuesConsumeraddNumericField in class DocValuesConsumerfield - field informationvalues - Iterable of numeric values (one for each document). null indicates
a missing value.IOException - if an I/O error occurred.public void addBinaryField(FieldInfo field, Iterable<BytesRef> values) throws IOException
DocValuesConsumeraddBinaryField in class DocValuesConsumerfield - field informationvalues - Iterable of binary values (one for each document). null indicates
a missing value.IOException - if an I/O error occurred.public void addSortedField(FieldInfo field, Iterable<BytesRef> values, Iterable<Number> docToOrd) throws IOException
DocValuesConsumeraddSortedField in class DocValuesConsumerfield - field informationvalues - Iterable of binary values in sorted order (deduplicated).docToOrd - Iterable of ordinals (one for each document). -1 indicates
a missing value.IOException - if an I/O error occurred.public void addSortedSetField(FieldInfo field, Iterable<BytesRef> values, Iterable<Number> docToOrdCount, Iterable<Number> ords) throws IOException
DocValuesConsumeraddSortedSetField in class DocValuesConsumerfield - field informationvalues - Iterable of binary values in sorted order (deduplicated).docToOrdCount - Iterable of the number of values for each document. A zero ordinal
count indicates a missing value.ords - Iterable of ordinal occurrences (docToOrdCount*maxDoc total).IOException - if an I/O error occurred.public void close()
throws IOException
IOExceptionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.