public class AccumulatorAggregation extends KiviPredAggregation
expression, name
Constructor and Description |
---|
AccumulatorAggregation(String name,
KiviPredExpression expression,
Accumulator accumulator) |
Modifier and Type | Method and Description |
---|---|
void |
generateClientFunction(kv.NP pred,
KiviTableModel tableModel,
KiviTableModel initialTableModel,
int fieldPosition) |
void |
generateInitValues(kv.NP pred,
KiviTableModel tableModel,
int fieldPosition) |
void |
generateServerFunction(kv.NP pred,
KiviTableModel tableModel,
KiviTableModel initialTableModel,
int fieldPosition) |
void |
generateTermFunction(kv.NP pred,
KiviTableModel tableModel,
int fieldPosition) |
List<KiviPredAggregation> |
getAuxiliaryAggregations() |
Object |
getInitValues(Type type) |
Type |
getType(TableModel tableModel)
Returns the result type of the aggregation
|
boolean |
isComposed() |
boolean |
requiresTermFunction() |
generateVar, generateVar, getName
public AccumulatorAggregation(String name, KiviPredExpression expression, Accumulator accumulator)
public void generateInitValues(kv.NP pred, KiviTableModel tableModel, int fieldPosition)
generateInitValues
in class KiviPredAggregation
public Object getInitValues(Type type)
getInitValues
in class KiviPredAggregation
public void generateServerFunction(kv.NP pred, KiviTableModel tableModel, KiviTableModel initialTableModel, int fieldPosition)
generateServerFunction
in class KiviPredAggregation
public void generateClientFunction(kv.NP pred, KiviTableModel tableModel, KiviTableModel initialTableModel, int fieldPosition)
generateClientFunction
in class KiviPredAggregation
public void generateTermFunction(kv.NP pred, KiviTableModel tableModel, int fieldPosition)
generateTermFunction
in class KiviPredAggregation
public Type getType(TableModel tableModel)
Aggregation
tableModel
- TableModel of the underlying tablepublic boolean isComposed()
isComposed
in class KiviPredAggregation
public boolean requiresTermFunction()
requiresTermFunction
in class KiviPredAggregation
public List<KiviPredAggregation> getAuxiliaryAggregations()
getAuxiliaryAggregations
in class KiviPredAggregation
Copyright © 2020. All rights reserved.