class DirectDocValuesConsumer extends DocValuesConsumer
DirectDocValuesFormat
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
data |
(package private) int |
maxDoc |
(package private) IndexOutput |
meta |
Constructor and Description |
---|
DirectDocValuesConsumer(SegmentWriteState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension) |
Modifier and Type | Method and Description |
---|---|
void |
addBinaryField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes binary docvalues for a field.
|
private void |
addBinaryFieldValues(FieldInfo field,
java.lang.Iterable<BytesRef> values) |
void |
addNumericField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes numeric docvalues for a field.
|
private void |
addNumericFieldValues(FieldInfo field,
java.lang.Iterable<java.lang.Number> values) |
void |
addSortedField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes pre-sorted binary docvalues for a field.
|
void |
addSortedNumericField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes pre-sorted numeric docvalues for a field
|
void |
addSortedSetField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes pre-sorted set docvalues for a field
|
void |
close() |
private java.lang.Iterable<java.lang.Number> |
countToAddressIterator(java.lang.Iterable<java.lang.Number> counts)
Just aggregates the count values so they become
"addresses", and adds one more value in the end
(the final sum)
|
(package private) void |
writeMissingBitset(java.lang.Iterable<?> values) |
isSingleValued, merge, mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedNumericField, mergeSortedSetField, singletonView
IndexOutput data
IndexOutput meta
final int maxDoc
DirectDocValuesConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
java.io.IOException
public void addNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addNumericField
in class DocValuesConsumer
field
- field informationvaluesProducer
- Numeric values to write.java.io.IOException
- if an I/O error occurred.private void addNumericFieldValues(FieldInfo field, java.lang.Iterable<java.lang.Number> values) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void addBinaryField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addBinaryField
in class DocValuesConsumer
field
- field informationvaluesProducer
- Binary values to write.java.io.IOException
- if an I/O error occurred.private void addBinaryFieldValues(FieldInfo field, java.lang.Iterable<BytesRef> values) throws java.io.IOException
java.io.IOException
void writeMissingBitset(java.lang.Iterable<?> values) throws java.io.IOException
java.io.IOException
public void addSortedField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addSortedField
in class DocValuesConsumer
field
- field informationvaluesProducer
- produces the values and ordinals to writejava.io.IOException
- if an I/O error occurred.public void addSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addSortedNumericField
in class DocValuesConsumer
field
- field informationvaluesProducer
- produces the values to writejava.io.IOException
- if an I/O error occurred.public void addSortedSetField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addSortedSetField
in class DocValuesConsumer
field
- field informationvaluesProducer
- produces the values to writejava.io.IOException
- if an I/O error occurred.private java.lang.Iterable<java.lang.Number> countToAddressIterator(java.lang.Iterable<java.lang.Number> counts)