T - the type of input and outputpublic abstract class SimpleAggregateFunction<T> extends AggregateFunction
SimpleAggregateFunction is an AggregateFunction
that takes a single input and returns a single output when state is called.| Constructor and Description |
|---|
SimpleAggregateFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(Object[] input)
Execute this
AggregateFunction with an input record. |
Object[] |
state() |
init, statelessCloneequals, getOutputClasses, hashCode, toStringgetInputClassespublic void aggregate(Object[] input)
AggregateFunctionAggregateFunction with an input record. Input records should match the types reported
by getInputClasses().aggregate in class AggregateFunctioninput - Input record.public Object[] state()
state in class AggregateFunctionCopyright © 2017. All rights reserved.