Interface PlaModel.SegmentConsumer

All Known Implementing Classes:
DoublePgmIndex.DoubleBuilder, FloatPgmIndex.FloatBuilder, IntPgmIndex.IntBuilder, LongPgmIndex.LongBuilder
Enclosing class:
PlaModel

public static interface PlaModel.SegmentConsumer
Consumer notified when a new segment is built by the PlaModel.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(double firstKey, double slope, long intercept)
    Consumes a new segment.
  • Method Details

    • accept

      void accept(double firstKey, double slope, long intercept)
      Consumes a new segment. The segment is defined by the epsilon-approximation function fs(k) = k × slope + intercept.
      Parameters:
      firstKey - The first key of the segment.
      slope - The segment slope.
      intercept - The segment intercept.