Package org.apache.lucene.codecs.memory
Class DirectDocValuesConsumer
java.lang.Object
org.apache.lucene.codecs.DocValuesConsumer
org.apache.lucene.codecs.memory.DirectDocValuesConsumer
- All Implemented Interfaces:
Closeable,AutoCloseable
Writer for
DirectDocValuesFormat-
Field Summary
FieldsModifier and TypeFieldDescription(package private) IndexOutput(package private) final int(package private) IndexOutput -
Constructor Summary
ConstructorsConstructorDescriptionDirectDocValuesConsumer(SegmentWriteState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinaryField(FieldInfo field, DocValuesProducer valuesProducer) Writes binary docvalues for a field.private voidaddBinaryFieldValues(FieldInfo field, Iterable<BytesRef> values) voidaddNumericField(FieldInfo field, DocValuesProducer valuesProducer) Writes numeric docvalues for a field.private voidaddNumericFieldValues(FieldInfo field, Iterable<Number> values) voidaddSortedField(FieldInfo field, DocValuesProducer valuesProducer) Writes pre-sorted binary docvalues for a field.voidaddSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) Writes pre-sorted numeric docvalues for a fieldvoidaddSortedSetField(FieldInfo field, DocValuesProducer valuesProducer) Writes pre-sorted set docvalues for a fieldvoidclose()countToAddressIterator(Iterable<Number> counts) Just aggregates the count values so they become "addresses", and adds one more value in the end (the final sum)(package private) voidwriteMissingBitset(Iterable<?> values) Methods inherited from class org.apache.lucene.codecs.DocValuesConsumer
isSingleValued, merge, mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedNumericField, mergeSortedSetField, singletonView
-
Field Details
-
data
IndexOutput data -
meta
IndexOutput meta -
maxDoc
final int maxDoc
-
-
Constructor Details
-
DirectDocValuesConsumer
DirectDocValuesConsumer(SegmentWriteState state, String dataCodec, String dataExtension, String metaCodec, String metaExtension) throws IOException - Throws:
IOException
-
-
Method Details
-
addNumericField
Description copied from class:DocValuesConsumerWrites numeric docvalues for a field.- Specified by:
addNumericFieldin classDocValuesConsumer- Parameters:
field- field informationvaluesProducer- Numeric values to write.- Throws:
IOException- if an I/O error occurred.
-
addNumericFieldValues
- Throws:
IOException
-
close
- Throws:
IOException
-
addBinaryField
Description copied from class:DocValuesConsumerWrites binary docvalues for a field.- Specified by:
addBinaryFieldin classDocValuesConsumer- Parameters:
field- field informationvaluesProducer- Binary values to write.- Throws:
IOException- if an I/O error occurred.
-
addBinaryFieldValues
- Throws:
IOException
-
writeMissingBitset
- Throws:
IOException
-
addSortedField
Description copied from class:DocValuesConsumerWrites pre-sorted binary docvalues for a field.- Specified by:
addSortedFieldin classDocValuesConsumer- Parameters:
field- field informationvaluesProducer- produces the values and ordinals to write- Throws:
IOException- if an I/O error occurred.
-
addSortedNumericField
public void addSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws IOException Description copied from class:DocValuesConsumerWrites pre-sorted numeric docvalues for a field- Specified by:
addSortedNumericFieldin classDocValuesConsumer- Parameters:
field- field informationvaluesProducer- produces the values to write- Throws:
IOException- if an I/O error occurred.
-
addSortedSetField
Description copied from class:DocValuesConsumerWrites pre-sorted set docvalues for a field- Specified by:
addSortedSetFieldin classDocValuesConsumer- Parameters:
field- field informationvaluesProducer- produces the values to write- Throws:
IOException- if an I/O error occurred.
-
countToAddressIterator
Just aggregates the count values so they become "addresses", and adds one more value in the end (the final sum)
-