Class LastValueAggFunction<T>

java.lang.Object
org.apache.flink.table.functions.UserDefinedFunction
org.apache.flink.table.functions.ImperativeAggregateFunction<T,ACC>
org.apache.flink.table.functions.AggregateFunction<T,ACC>
org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
org.apache.flink.table.runtime.functions.aggregate.LastValueAggFunction<T>
All Implemented Interfaces:
Serializable, org.apache.flink.table.functions.FunctionDefinition

@Internal public final class LastValueAggFunction<T> extends BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
Built-in LAST_VALUE aggregate function.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    LastValueAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value)
     
    void
    accumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value, Long order)
     
    void
    accumulate(org.apache.flink.table.data.RowData rowData, Object value)
     
    void
    accumulate(org.apache.flink.table.data.RowData rowData, Object value, Long order)
     
    org.apache.flink.table.data.RowData
     
    org.apache.flink.table.types.DataType
     
    List<org.apache.flink.table.types.DataType>
     
    org.apache.flink.table.types.DataType
     
    getValue(org.apache.flink.table.data.RowData rowData)
     
    boolean
     
    void
    resetAccumulator(org.apache.flink.table.data.RowData rowData)
     

    Methods inherited from class org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction

    getRequirements, getTypeInference

    Methods inherited from class org.apache.flink.table.functions.AggregateFunction

    getKind

    Methods inherited from class org.apache.flink.table.functions.ImperativeAggregateFunction

    getAccumulatorType, getResultType

    Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction

    close, functionIdentifier, open, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.flink.table.functions.FunctionDefinition

    supportsConstantFolding
  • Constructor Details

    • LastValueAggFunction

      public LastValueAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
  • Method Details

    • getArgumentDataTypes

      public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
      Overrides:
      getArgumentDataTypes in class BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
    • getAccumulatorDataType

      public org.apache.flink.table.types.DataType getAccumulatorDataType()
      Overrides:
      getAccumulatorDataType in class BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
    • getOutputDataType

      public org.apache.flink.table.types.DataType getOutputDataType()
      Overrides:
      getOutputDataType in class BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
    • isDeterministic

      public boolean isDeterministic()
      Specified by:
      isDeterministic in interface org.apache.flink.table.functions.FunctionDefinition
      Overrides:
      isDeterministic in class BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
    • createAccumulator

      public org.apache.flink.table.data.RowData createAccumulator()
      Specified by:
      createAccumulator in class org.apache.flink.table.functions.ImperativeAggregateFunction<T,org.apache.flink.table.data.RowData>
    • accumulate

      public void accumulate(org.apache.flink.table.data.RowData rowData, Object value)
    • accumulate

      public void accumulate(org.apache.flink.table.data.RowData rowData, Object value, Long order)
    • accumulate

      public void accumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value)
    • accumulate

      public void accumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value, Long order)
    • resetAccumulator

      public void resetAccumulator(org.apache.flink.table.data.RowData rowData)
    • getValue

      public T getValue(org.apache.flink.table.data.RowData rowData)
      Specified by:
      getValue in class org.apache.flink.table.functions.AggregateFunction<T,org.apache.flink.table.data.RowData>