Class XDocValuesConsumer

java.lang.Object
org.apache.lucene.codecs.DocValuesConsumer
org.elasticsearch.index.codec.tsdb.es819.XDocValuesConsumer
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class XDocValuesConsumer extends org.apache.lucene.codecs.DocValuesConsumer
Forks the merging logic from DocValuesConsumer that ES819TSDBDocValuesConsumer needs. This class should be removed when merging logic in DocValuesConsumer becomes accessible / overwritable in Lucene.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Sole constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mergeBinaryField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState)
    Merges the binary docvalues from MergeState.
    void
    mergeNumericField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState)
    Merges the numeric docvalues from MergeState.
    void
    mergeSortedField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState)
    Merges the sorted docvalues from toMerge.
    void
    mergeSortedNumericField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState)
    Merges the sorted docvalues from toMerge.
    void
    mergeSortedSetField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState)
    Merges the sortedset docvalues from toMerge.

    Methods inherited from class org.apache.lucene.codecs.DocValuesConsumer

    addBinaryField, addNumericField, addSortedField, addSortedNumericField, addSortedSetField, isSingleValued, merge, mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedNumericField, mergeSortedSetField, singletonView

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.io.Closeable

    close
  • Constructor Details

    • XDocValuesConsumer

      protected XDocValuesConsumer()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details

    • mergeNumericField

      public void mergeNumericField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException
      Merges the numeric docvalues from MergeState.

      The default implementation calls DocValuesConsumer.addNumericField(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.DocValuesProducer), passing a DocValuesProducer that merges and filters deleted documents on the fly.

      Throws:
      IOException
    • mergeBinaryField

      public void mergeBinaryField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException
      Merges the binary docvalues from MergeState.

      The default implementation calls DocValuesConsumer.addBinaryField(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.DocValuesProducer), passing a DocValuesProducer that merges and filters deleted documents on the fly.

      Throws:
      IOException
    • mergeSortedNumericField

      public void mergeSortedNumericField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException
      Merges the sorted docvalues from toMerge.

      The default implementation calls DocValuesConsumer.addSortedNumericField(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.DocValuesProducer), passing iterables that filter deleted documents.

      Throws:
      IOException
    • mergeSortedField

      public void mergeSortedField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException
      Merges the sorted docvalues from toMerge.

      The default implementation calls DocValuesConsumer.addSortedField(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.DocValuesProducer), passing an Iterable that merges ordinals and values and filters deleted documents .

      Throws:
      IOException
    • mergeSortedSetField

      public void mergeSortedSetField(org.elasticsearch.index.codec.tsdb.es819.DocValuesConsumerUtil.MergeStats mergeStats, org.apache.lucene.index.FieldInfo mergeFieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException
      Merges the sortedset docvalues from toMerge.

      The default implementation calls DocValuesConsumer.addSortedSetField(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.DocValuesProducer), passing an Iterable that merges ordinals and values and filters deleted documents .

      Throws:
      IOException