Interface DeclaredArgumentAccumulator

All Known Implementing Classes:
ApproxTopKStateAccumulator

public interface DeclaredArgumentAccumulator
An accumulator that needs the aggregated expression's DECLARED type, which its values cannot give — a NUMBER(10,2) column and a literal 1.5 both arrive as a BigDecimal, and only the declaration says which width the APPROX_TOP_K_ACCUMULATE state must report.

Both aggregate paths hand over the static type of the first argument before the first row is fed, or null when the expression cannot be typed.

  • Method Details

    • setDeclaredArgumentType

      void setDeclaredArgumentType(DataType declared)