Class MinMaxNStateFactory.SingleMinMaxNState

java.lang.Object
io.trino.operator.aggregation.minmaxn.MinMaxNStateFactory.SingleMinMaxNState
All Implemented Interfaces:
MinMaxNState, AccumulatorState
Enclosing class:
MinMaxNStateFactory

public abstract static class MinMaxNStateFactory.SingleMinMaxNState extends Object
  • Constructor Details

  • Method Details

    • copy

      public abstract AccumulatorState copy()
    • getEstimatedSize

      public final long getEstimatedSize()
    • initialize

      public final void initialize(long n)
      Description copied from interface: MinMaxNState
      Initialize the state if not already initialized. Only the first call is processed and all subsequent calls are ignored.
    • add

      public final void add(ValueBlock block, int position)
      Description copied from interface: MinMaxNState
      Adds the value to this state.
    • writeAllSorted

      public final void writeAllSorted(BlockBuilder out)
      Description copied from interface: MinMaxNState
      Writes all values to the supplied block builder as an array entry.
    • merge

      public final void merge(MinMaxNState other)
      Description copied from interface: MinMaxNState
      Merge with the specified state. The supplied state should not be used after this method is called, because the internal details of the state may be reused in this state.
      Specified by:
      merge in interface MinMaxNState
    • serialize

      public final void serialize(BlockBuilder out)
      Description copied from interface: MinMaxNState
      Write this state to the specified block builder.
      Specified by:
      serialize in interface MinMaxNState