Search in sources :

Example 1 with RowProjectorProcessorSupplier

use of com.hazelcast.jet.sql.impl.connector.map.RowProjectorProcessorSupplier in project hazelcast by hazelcast.

the class JetSqlSerializerHook method createFactory.

@SuppressWarnings("unchecked")
@Override
public DataSerializableFactory createFactory() {
    ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];
    constructors[JSON_QUERY] = arg -> new JsonQueryFunction();
    constructors[JSON_PARSE] = arg -> new JsonParseFunction();
    constructors[JSON_VALUE] = arg -> new JsonValueFunction<>();
    constructors[JSON_OBJECT] = arg -> new JsonObjectFunction();
    constructors[JSON_ARRAY] = arg -> new JsonArrayFunction();
    constructors[MAP_INDEX_SCAN_METADATA] = arg -> new MapIndexScanMetadata();
    constructors[ROW_PROJECTOR_PROCESSOR_SUPPLIER] = arg -> new RowProjectorProcessorSupplier();
    constructors[KV_ROW_PROJECTOR_SUPPLIER] = arg -> new KvRowProjector.Supplier();
    constructors[ROOT_RESULT_CONSUMER_SINK_SUPPLIER] = arg -> new RootResultConsumerSink.Supplier();
    constructors[SQL_ROW_COMPARATOR] = arg -> new ExpressionUtil.SqlRowComparator();
    constructors[FIELD_COLLATION] = arg -> new FieldCollation();
    constructors[ROW_GET_MAYBE_SERIALIZED_FN] = arg -> new AggregateAbstractPhysicalRule.RowGetMaybeSerializedFn();
    constructors[NULL_FUNCTION] = arg -> AggregateAbstractPhysicalRule.NullFunction.INSTANCE;
    constructors[ROW_GET_FN] = arg -> new AggregateAbstractPhysicalRule.RowGetFn();
    constructors[AGGREGATE_CREATE_SUPPLIER] = arg -> new AggregateAbstractPhysicalRule.AggregateCreateSupplier();
    constructors[AGGREGATE_ACCUMULATE_FUNCTION] = arg -> new AggregateAbstractPhysicalRule.AggregateAccumulateFunction();
    constructors[AGGREGATE_COMBINE_FUNCTION] = arg -> AggregateAbstractPhysicalRule.AggregateCombineFunction.INSTANCE;
    constructors[AGGREGATE_EXPORT_FINISH_FUNCTION] = arg -> AggregateAbstractPhysicalRule.AggregateExportFinishFunction.INSTANCE;
    constructors[AGGREGATE_SUM_SUPPLIER] = arg -> new AggregateAbstractPhysicalRule.AggregateSumSupplier();
    constructors[AGGREGATE_AVG_SUPPLIER] = arg -> new AggregateAbstractPhysicalRule.AggregateAvgSupplier();
    constructors[AGGREGATE_COUNT_SUPPLIER] = arg -> new AggregateAbstractPhysicalRule.AggregateCountSupplier();
    return new ArrayDataSerializableFactory(constructors);
}
Also used : KvRowProjector(com.hazelcast.jet.sql.impl.connector.keyvalue.KvRowProjector) AggregateAbstractPhysicalRule(com.hazelcast.jet.sql.impl.opt.physical.AggregateAbstractPhysicalRule) JsonParseFunction(com.hazelcast.jet.sql.impl.expression.json.JsonParseFunction) FieldCollation(com.hazelcast.jet.sql.impl.opt.FieldCollation) JsonObjectFunction(com.hazelcast.jet.sql.impl.expression.json.JsonObjectFunction) RowProjectorProcessorSupplier(com.hazelcast.jet.sql.impl.connector.map.RowProjectorProcessorSupplier) ConstructorFunction(com.hazelcast.internal.util.ConstructorFunction) JsonArrayFunction(com.hazelcast.jet.sql.impl.expression.json.JsonArrayFunction) MapIndexScanMetadata(com.hazelcast.sql.impl.exec.scan.MapIndexScanMetadata) RootResultConsumerSink(com.hazelcast.jet.sql.impl.processors.RootResultConsumerSink) ArrayDataSerializableFactory(com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory) JsonQueryFunction(com.hazelcast.jet.sql.impl.expression.json.JsonQueryFunction)

Aggregations

ArrayDataSerializableFactory (com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)1 ConstructorFunction (com.hazelcast.internal.util.ConstructorFunction)1 KvRowProjector (com.hazelcast.jet.sql.impl.connector.keyvalue.KvRowProjector)1 RowProjectorProcessorSupplier (com.hazelcast.jet.sql.impl.connector.map.RowProjectorProcessorSupplier)1 JsonArrayFunction (com.hazelcast.jet.sql.impl.expression.json.JsonArrayFunction)1 JsonObjectFunction (com.hazelcast.jet.sql.impl.expression.json.JsonObjectFunction)1 JsonParseFunction (com.hazelcast.jet.sql.impl.expression.json.JsonParseFunction)1 JsonQueryFunction (com.hazelcast.jet.sql.impl.expression.json.JsonQueryFunction)1 FieldCollation (com.hazelcast.jet.sql.impl.opt.FieldCollation)1 AggregateAbstractPhysicalRule (com.hazelcast.jet.sql.impl.opt.physical.AggregateAbstractPhysicalRule)1 RootResultConsumerSink (com.hazelcast.jet.sql.impl.processors.RootResultConsumerSink)1 MapIndexScanMetadata (com.hazelcast.sql.impl.exec.scan.MapIndexScanMetadata)1