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(Block block, int position)
      Description copied from interface: MinMaxNState
      Adds the value to this state.
    • 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.
    • writeAll

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

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

      public final void deserialize(Block rowBlock)
      Description copied from interface: MinMaxNState
      Read the state to the specified block builder.