Interface NumericFieldWriter


public interface NumericFieldWriter
See Also:
  • Method Details

    • writeField

      long[] writeField(org.apache.lucene.index.FieldInfo field, TsdbDocValuesProducer valuesSource, long maxOrd, NumericFieldWriter.OffsetsConsumer offsetsConsumer, SortedFieldObserver sortedFieldObserver) throws IOException
      Writes the full numeric field: entry metadata, block data, and DISI.
      Parameters:
      field - the field being written
      valuesSource - the source of doc values
      maxOrd - the maximum ordinal value, or -1 if not using ordinals
      offsetsConsumer - consumer for per-doc value counts (sorted-numeric offsets), or null
      sortedFieldObserver - observer notified of (docId, ord) pairs during the doc pass, or null
      Returns:
      array of [numDocsWithValue, numValues]
      Throws:
      IOException
    • encoder

      Returns an encoder for per-block numeric value encoding.
      Returns:
      a new encoder instance