Java Code Examples for org.apache.calcite.adapter.enumerable.EnumerableConvention#INSTANCE
The following examples show how to use
org.apache.calcite.adapter.enumerable.EnumerableConvention#INSTANCE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JdbcToEnumerableConverterRule.java From calcite with Apache License 2.0 | 5 votes |
/** Creates a JdbcToEnumerableConverterRule. */ public JdbcToEnumerableConverterRule(JdbcConvention out, RelBuilderFactory relBuilderFactory) { super(RelNode.class, (Predicate<RelNode>) r -> true, out, EnumerableConvention.INSTANCE, relBuilderFactory, "JdbcToEnumerableConverterRule"); }
Example 2
Source File: CalcitePrepareImpl.java From calcite with Apache License 2.0 | 5 votes |
private ParseResult convert_(Context context, String sql, boolean analyze, boolean fail, CalciteCatalogReader catalogReader, SqlValidator validator, SqlNode sqlNode1) { final JavaTypeFactory typeFactory = context.getTypeFactory(); final Convention resultConvention = enableBindable ? BindableConvention.INSTANCE : EnumerableConvention.INSTANCE; // Use the Volcano because it can handle the traits. final VolcanoPlanner planner = new VolcanoPlanner(); planner.addRelTraitDef(ConventionTraitDef.INSTANCE); final SqlToRelConverter.ConfigBuilder configBuilder = SqlToRelConverter.configBuilder().withTrimUnusedFields(true); final CalcitePreparingStmt preparingStmt = new CalcitePreparingStmt(this, context, catalogReader, typeFactory, context.getRootSchema(), null, createCluster(planner, new RexBuilder(typeFactory)), resultConvention, createConvertletTable()); final SqlToRelConverter converter = preparingStmt.getSqlToRelConverter(validator, catalogReader, configBuilder.build()); final RelRoot root = converter.convertQuery(sqlNode1, false, true); if (analyze) { return analyze_(validator, sql, sqlNode1, root, fail); } return new ConvertResult(this, validator, sql, sqlNode1, validator.getValidatedNodeType(sqlNode1), root); }
Example 3
Source File: MycatToEnumerableConverterRule.java From Mycat2 with GNU General Public License v3.0 | 5 votes |
/** * Creates a CassandraToEnumerableConverterRule. * * @param relBuilderFactory Builder for relational expressions */ public MycatToEnumerableConverterRule( RelBuilderFactory relBuilderFactory) { super(RelNode.class, (Predicate<RelNode>) r -> true, Convention.NONE, EnumerableConvention.INSTANCE, relBuilderFactory, "MycatToEnumerableConverterRule"); }
Example 4
Source File: ElasticsearchToEnumerableConverterRule.java From calcite with Apache License 2.0 | 5 votes |
/** * Creates an ElasticsearchToEnumerableConverterRule. * * @param relBuilderFactory Builder for relational expressions */ private ElasticsearchToEnumerableConverterRule( RelBuilderFactory relBuilderFactory) { super(RelNode.class, (Predicate<RelNode>) r -> true, ElasticsearchRel.CONVENTION, EnumerableConvention.INSTANCE, relBuilderFactory, "ElasticsearchToEnumerableConverterRule"); }
Example 5
Source File: SqlHintsConverterTest.java From calcite with Apache License 2.0 | 5 votes |
MockEnumerableJoinRule(RelHint hint) { super( LogicalJoin.class, Convention.NONE, EnumerableConvention.INSTANCE, "MockEnumerableJoinRule"); this.expectedHint = hint; }
Example 6
Source File: CassandraToEnumerableConverterRule.java From calcite with Apache License 2.0 | 5 votes |
/** * Creates a CassandraToEnumerableConverterRule. * * @param relBuilderFactory Builder for relational expressions */ public CassandraToEnumerableConverterRule( RelBuilderFactory relBuilderFactory) { super(RelNode.class, (Predicate<RelNode>) r -> true, CassandraRel.CONVENTION, EnumerableConvention.INSTANCE, relBuilderFactory, "CassandraToEnumerableConverterRule"); }
Example 7
Source File: VolcanoPlannerTraitTest.java From calcite with Apache License 2.0 | 5 votes |
PhysToIteratorConverterRule() { super( RelNode.class, PHYS_CALLING_CONVENTION, EnumerableConvention.INSTANCE, "PhysToIteratorRule"); }
Example 8
Source File: SparkRules.java From calcite with Apache License 2.0 | 4 votes |
private EnumerableToSparkConverterRule() { super( RelNode.class, EnumerableConvention.INSTANCE, SparkRel.CONVENTION, "EnumerableToSparkConverterRule"); }
Example 9
Source File: VolcanoPlannerTraitTest.java From calcite with Apache License 2.0 | 4 votes |
public Convention getOutConvention() { return EnumerableConvention.INSTANCE; }
Example 10
Source File: MongoToEnumerableConverterRule.java From calcite with Apache License 2.0 | 4 votes |
/** * Creates a MongoToEnumerableConverterRule. * * @param relBuilderFactory Builder for relational expressions */ public MongoToEnumerableConverterRule(RelBuilderFactory relBuilderFactory) { super(RelNode.class, (Predicate<RelNode>) r -> true, MongoRel.CONVENTION, EnumerableConvention.INSTANCE, relBuilderFactory, "MongoToEnumerableConverterRule"); }
Example 11
Source File: PigToEnumerableConverterRule.java From calcite with Apache License 2.0 | 4 votes |
private PigToEnumerableConverterRule() { super(RelNode.class, PigRel.CONVENTION, EnumerableConvention.INSTANCE, "PigToEnumerableConverterRule"); }
Example 12
Source File: GeodeToEnumerableConverterRule.java From calcite with Apache License 2.0 | 4 votes |
private GeodeToEnumerableConverterRule() { super(RelNode.class, GeodeRel.CONVENTION, EnumerableConvention.INSTANCE, "GeodeToEnumerableConverterRule"); }
Example 13
Source File: VolcanoPlannerTraitTest.java From calcite with Apache License 2.0 | 4 votes |
public Convention getOutConvention() { return EnumerableConvention.INSTANCE; }
Example 14
Source File: EnumerableToSparkConverterRule.java From calcite with Apache License 2.0 | 4 votes |
/** * Creates an EnumerableToSparkConverterRule. * * @param relBuilderFactory Builder for relational expressions */ public EnumerableToSparkConverterRule(RelBuilderFactory relBuilderFactory) { super(RelNode.class, (Predicate<RelNode>) r -> true, EnumerableConvention.INSTANCE, SparkRel.CONVENTION, relBuilderFactory, "EnumerableToSparkConverterRule"); }
Example 15
Source File: OLAPToEnumerableConverterRule.java From kylin with Apache License 2.0 | 4 votes |
public OLAPToEnumerableConverterRule() { super(RelNode.class, OLAPRel.CONVENTION, EnumerableConvention.INSTANCE, "OLAPToEnumerableConverterRule"); }
Example 16
Source File: SolrToEnumerableConverterRule.java From lucene-solr with Apache License 2.0 | 4 votes |
private SolrToEnumerableConverterRule() { super(RelNode.class, SolrRel.CONVENTION, EnumerableConvention.INSTANCE, "SolrToEnumerableConverterRule"); }
Example 17
Source File: EnumerableRule.java From dremio-oss with Apache License 2.0 | 4 votes |
private EnumerableRule() { super(RelNode.class, Rel.LOGICAL, EnumerableConvention.INSTANCE, "EnumerableRule."); }
Example 18
Source File: ElasticsearchToEnumerableConverterRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchToEnumerableConverterRule(){ super(RelNode.class, ElasticsearchRelNode.CONVENTION, EnumerableConvention.INSTANCE, ElasticsearchToEnumerableConverterRule.class.getSimpleName()); }
Example 19
Source File: ElasticsearchToEnumerableConverterRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchToEnumerableConverterRule(){ super(RelNode.class, ElasticsearchRelNode.CONVENTION, EnumerableConvention.INSTANCE, ElasticsearchToEnumerableConverterRule.class.getSimpleName()); }
Example 20
Source File: OLAPToEnumerableConverterRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public OLAPToEnumerableConverterRule() { super(RelNode.class, OLAPRel.CONVENTION, EnumerableConvention.INSTANCE, "OLAPToEnumerableConverterRule"); }