use of org.apache.calcite.adapter.enumerable.EnumerableRelImplementor in project drill by apache.
the class CassandraEnumerablePrelContext method generateCode.
@Override
public String generateCode(RelOptCluster cluster, RelNode relNode) {
RelNode enumerableRel = CassandraToEnumerableConverterRule.INSTANCE.convert(relNode);
ClassDeclaration classDeclaration = new EnumerableRelImplementor(cluster.getRexBuilder(), Collections.emptyMap()).implementRoot((EnumerableRel) enumerableRel, EnumerableRel.Prefer.ARRAY);
return Expressions.toString(Collections.singletonList(classDeclaration), "\n", false);
}
Aggregations