use of com.hazelcast.sql.impl.schema.Table in project hazelcast by hazelcast.
the class CreateDagVisitor method onFullScan.
public Vertex onFullScan(FullScanPhysicalRel rel) {
Table table = rel.getTable().unwrap(HazelcastTable.class).getTarget();
collectObjectKeys(table);
return getJetSqlConnector(table).fullScanReader(dag, table, rel.filter(parameterMetadata), rel.projection(parameterMetadata), rel.eventTimePolicyProvider());
}
use of com.hazelcast.sql.impl.schema.Table in project hazelcast by hazelcast.
the class CreateDagVisitor method onNestedLoopJoin.
public Vertex onNestedLoopJoin(JoinNestedLoopPhysicalRel rel) {
assert rel.getRight() instanceof FullScanPhysicalRel : rel.getRight().getClass();
Table rightTable = rel.getRight().getTable().unwrap(HazelcastTable.class).getTarget();
collectObjectKeys(rightTable);
VertexWithInputConfig vertexWithConfig = getJetSqlConnector(rightTable).nestedLoopReader(dag, rightTable, rel.rightFilter(parameterMetadata), rel.rightProjection(parameterMetadata), rel.joinInfo(parameterMetadata));
Vertex vertex = vertexWithConfig.vertex();
connectInput(rel.getLeft(), vertex, vertexWithConfig.configureEdgeFn());
return vertex;
}
use of com.hazelcast.sql.impl.schema.Table in project hazelcast by hazelcast.
the class CreateDagVisitor method onUpdate.
public Vertex onUpdate(UpdatePhysicalRel rel) {
Table table = rel.getTable().unwrap(HazelcastTable.class).getTarget();
Vertex vertex = getJetSqlConnector(table).updateProcessor(dag, table, rel.updates(parameterMetadata));
connectInput(rel.getInput(), vertex, null);
return vertex;
}
use of com.hazelcast.sql.impl.schema.Table in project hazelcast by hazelcast.
the class CreateDagVisitor method onSink.
public Vertex onSink(SinkPhysicalRel rel) {
Table table = rel.getTable().unwrap(HazelcastTable.class).getTarget();
collectObjectKeys(table);
Vertex vertex = getJetSqlConnector(table).sinkProcessor(dag, table);
connectInput(rel.getInput(), vertex, null);
return vertex;
}
use of com.hazelcast.sql.impl.schema.Table in project hazelcast by hazelcast.
the class CreateDagVisitor method onInsert.
public Vertex onInsert(InsertPhysicalRel rel) {
Table table = rel.getTable().unwrap(HazelcastTable.class).getTarget();
collectObjectKeys(table);
VertexWithInputConfig vertexWithConfig = getJetSqlConnector(table).insertProcessor(dag, table);
Vertex vertex = vertexWithConfig.vertex();
connectInput(rel.getInput(), vertex, vertexWithConfig.configureEdgeFn());
return vertex;
}
Aggregations