Class LegacyDirectMonotonicWriter

java.lang.Object
org.apache.lucene.backward_codecs.packed.LegacyDirectMonotonicWriter

public final class LegacyDirectMonotonicWriter extends Object
Write monotonically-increasing sequences of integers. This writer splits data into blocks and then for each block, computes the average slope, the minimum value and only encode the delta from the expected value using a LegacyDirectWriter.
See Also:
  • Field Details

    • MIN_BLOCK_SHIFT

      public static final int MIN_BLOCK_SHIFT
      min block shift
      See Also:
    • MAX_BLOCK_SHIFT

      public static final int MAX_BLOCK_SHIFT
      max block shift
      See Also:
    • meta

      final IndexOutput meta
    • data

      final IndexOutput data
    • numValues

      final long numValues
    • baseDataPointer

      final long baseDataPointer
    • buffer

      final long[] buffer
    • bufferSize

      int bufferSize
    • count

      long count
    • finished

      boolean finished
    • previous

      long previous
  • Constructor Details

    • LegacyDirectMonotonicWriter

      LegacyDirectMonotonicWriter(IndexOutput metaOut, IndexOutput dataOut, long numValues, int blockShift)
  • Method Details