Package com.datasqrl.json
Class JsonObjectAgg
-
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
public class JsonObjectAgg extends org.apache.flink.table.functions.AggregateFunction<Object,ObjectAgg>
Aggregation function that merges JSON objects into a single JSON object. If two JSON objects share the same field name, the value of the later one is used in the aggregated result.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonObjectAgg()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(ObjectAgg accumulator, String key, Double value)voidaccumulate(ObjectAgg accumulator, String key, Integer value)voidaccumulate(ObjectAgg accumulator, String key, Long value)voidaccumulate(ObjectAgg accumulator, String key, Object value)voidaccumulate(ObjectAgg accumulator, String key, String value)voidaccumulateObject(ObjectAgg accumulator, String key, Object value)ObjectAggcreateAccumulator()com.datasqrl.json.FlinkJsonTypegetValue(ObjectAgg accumulator)voidmerge(ObjectAgg accumulator, Iterable<ObjectAgg> iterable)voidretract(ObjectAgg accumulator, String key, Double value)voidretract(ObjectAgg accumulator, String key, Integer value)voidretract(ObjectAgg accumulator, String key, Long value)voidretract(ObjectAgg accumulator, String key, Object value)voidretract(ObjectAgg accumulator, String key, String value)voidretractObject(ObjectAgg accumulator, String key)-
Methods inherited from class org.apache.flink.table.functions.AggregateFunction
getKind, getTypeInference
-
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
-
-
-
-
Method Detail
-
createAccumulator
public ObjectAgg createAccumulator()
-
-