use of com.hazelcast.sql.impl.plan.node.PlanNodeSchema in project hazelcast by hazelcast.
the class FullScanPhysicalRel method projection.
public List<Expression<?>> projection(QueryParameterMetadata parameterMetadata) {
PlanNodeSchema schema = OptUtils.schema(getTable());
HazelcastTable table = getTable().unwrap(HazelcastTable.class);
return project(schema, table.getProjects(), parameterMetadata);
}
use of com.hazelcast.sql.impl.plan.node.PlanNodeSchema in project hazelcast by hazelcast.
the class FullScanPhysicalRel method filter.
public Expression<Boolean> filter(QueryParameterMetadata parameterMetadata) {
PlanNodeSchema schema = OptUtils.schema(getTable());
RexNode filter = getTable().unwrap(HazelcastTable.class).getFilter();
return filter(schema, filter, parameterMetadata);
}
use of com.hazelcast.sql.impl.plan.node.PlanNodeSchema in project hazelcast by hazelcast.
the class IndexScanMapPhysicalRel method projection.
public List<Expression<?>> projection(QueryParameterMetadata parameterMetadata) {
PlanNodeSchema schema = OptUtils.schema(getTable());
HazelcastTable table = getTable().unwrap(HazelcastTable.class);
return project(schema, table.getProjects(), parameterMetadata);
}
use of com.hazelcast.sql.impl.plan.node.PlanNodeSchema in project hazelcast by hazelcast.
the class JoinPhysicalRel method schema.
@Override
public PlanNodeSchema schema(QueryParameterMetadata parameterMetadata) {
PlanNodeSchema leftSchema = ((PhysicalRel) getLeft()).schema(parameterMetadata);
PlanNodeSchema rightSchema = ((PhysicalRel) getRight()).schema(parameterMetadata);
return PlanNodeSchema.combine(leftSchema, rightSchema);
}
use of com.hazelcast.sql.impl.plan.node.PlanNodeSchema in project hazelcast by hazelcast.
the class SortPhysicalRel method fetch.
public Expression<?> fetch(QueryParameterMetadata parameterMetadata) {
PlanNodeSchema schema = schema(parameterMetadata);
RexVisitor<Expression<?>> visitor = OptUtils.createRexToExpressionVisitor(schema, parameterMetadata);
return fetch.accept(visitor);
}
Aggregations