Package org.eigenbase.rel.metadata

Examples of org.eigenbase.rel.metadata.DefaultRelMetadataProvider


    RelNode relInitial = tester.convertSqlToRel(sql);

    assertTrue(relInitial != null);

    List<RelMetadataProvider> list = Lists.newArrayList();
    DefaultRelMetadataProvider defaultProvider =
        new DefaultRelMetadataProvider();
    list.add(defaultProvider);
    planner.registerMetadataProviders(list);
    RelMetadataProvider plannerChain = ChainedRelMetadataProvider.of(list);
    relInitial.getCluster().setMetadataProvider(
        new CachingRelMetadataProvider(plannerChain, planner));
View Full Code Here


              .addRuleInstance(PushFilterPastJoinRule.FILTER_ON_JOIN)
              .addMatchOrder(HepMatchOrder.BOTTOM_UP)
              .addRuleInstance(ConvertMultiJoinRule.INSTANCE)
              .build();
          final Program program1 =
              of(hep, false, new DefaultRelMetadataProvider());

          // Create a program that contains a rule to expand a MultiJoinRel
          // into heuristically ordered joins.
          // We use the rule set passed in, but remove SwapJoinRule and
          // PushJoinThroughJoinRule, because they cause exhaustive search.
View Full Code Here

    final Program program = Programs.hep(
        ImmutableList.of(PushProjectPastFilterRule.INSTANCE,
            AggregateProjectMergeRule.INSTANCE,
            AggregateFilterTransposeRule.INSTANCE),
        false,
        new DefaultRelMetadataProvider());
    return program.run(null, rel2, null);
  }
View Full Code Here

            PullUpProjectsAboveJoinRule.RIGHT_PROJECT,
            PullUpProjectsAboveJoinRule.LEFT_PROJECT,
            PushFilterPastJoinRule.PushFilterIntoJoinRule.FILTER_ON_JOIN,
            MergeProjectRule.INSTANCE),
        false,
        new DefaultRelMetadataProvider());
    if (OptiqPrepareImpl.DEBUG) {
      System.out.println(
          RelOptUtil.dumpPlan(
              "before", rel, false, SqlExplainLevel.DIGEST_ATTRIBUTES));
    }
View Full Code Here

TOP

Related Classes of org.eigenbase.rel.metadata.DefaultRelMetadataProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.