Search in sources :

Example 1 with CassandraLimit

use of org.apache.calcite.adapter.cassandra.CassandraLimit in project drill by apache.

the class DrillCassandraLimitRule method convert.

public RelNode convert(RelNode relNode) {
    DrillLimitRelBase limit = (DrillLimitRelBase) relNode;
    final RelTraitSet traitSet = limit.getTraitSet().replace(CassandraRel.CONVENTION);
    return new CassandraLimit(limit.getCluster(), traitSet, convert(limit.getInput(), CassandraRel.CONVENTION), limit.getOffset(), limit.getFetch());
}
Also used : DrillLimitRelBase(org.apache.drill.exec.planner.common.DrillLimitRelBase) RelTraitSet(org.apache.calcite.plan.RelTraitSet) CassandraLimit(org.apache.calcite.adapter.cassandra.CassandraLimit)

Aggregations

CassandraLimit (org.apache.calcite.adapter.cassandra.CassandraLimit)1 RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 DrillLimitRelBase (org.apache.drill.exec.planner.common.DrillLimitRelBase)1