public abstract class FieldAggregator extends Object implements Serializable
Constructor and Description |
---|
FieldAggregator(DataType dataType) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
agg(Object accumulator,
Object inputField) |
Object |
aggReversed(Object accumulator,
Object inputField) |
static FieldAggregator |
createFieldAggregator(DataType fieldType,
String strAgg,
boolean ignoreRetract,
boolean isPrimaryKey,
CoreOptions options,
String field) |
void |
reset()
reset the aggregator to a clean start state.
|
Object |
retract(Object accumulator,
Object retractField) |
protected DataType fieldType
public FieldAggregator(DataType dataType)
public static FieldAggregator createFieldAggregator(DataType fieldType, @Nullable String strAgg, boolean ignoreRetract, boolean isPrimaryKey, CoreOptions options, String field)
public void reset()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.