DocValuesConsumer
Abstract API that consumes numeric, binary and sorted docvalues. Concrete implementations of this actually do "something" with the docvalues (write it into the index in a specific format).
The lifecycle is:
DocValuesConsumer is created by DocValuesFormat.fieldsConsumer.
.addNumericField, .addBinaryField, .addSortedField, .addSortedSetField, or .addSortedNumericField are called for each Numeric, Binary, Sorted, SortedSet, or SortedNumeric docvalues field. The API is a "pull" rather than "push", and the implementation is free to iterate over the values multiple times ( ).
After all fields are added, the consumer is .closed.
Functions
Writes binary docvalues for a field.
Writes numeric docvalues for a field.
Writes pre-sorted binary docvalues for a field.
Writes pre-sorted numeric docvalues for a field
Writes pre-sorted set docvalues for a field
Merges in the fields from the readers in mergeState. The default implementation calls .mergeNumericField, .mergeBinaryField, .mergeSortedField, .mergeSortedSetField, or .mergeSortedNumericField for each field, depending on its type. Implementations can override this method for more sophisticated merging (bulk-byte copying, etc).
Merges the binary docvalues from MergeState.
Merges the numeric docvalues from MergeState.
Merges the sorted docvalues from toMerge.
Merges the sorted docvalues from toMerge.
Merges the sortedset docvalues from toMerge.