Package org.apache.hadoop.hive.ql.optimizer.optiq.reloperators

Examples of org.apache.hadoop.hive.ql.optimizer.optiq.reloperators.HiveJoinRel$HiveJoinFactoryImpl


  @Override
  public Double getDistinctRowCount(JoinRelBase rel, BitSet groupKey,
      RexNode predicate) {
    if (rel instanceof HiveJoinRel) {
      HiveJoinRel hjRel = (HiveJoinRel) rel;
      //TODO: Improve this
      if (hjRel.isLeftSemiJoin()) {
        return RelMetadataQuery.getDistinctRowCount(hjRel.getLeft(), groupKey,
            rel.getCluster().getRexBuilder().makeLiteral(true));
      } else {
        return RelMdUtil.getJoinDistinctRowCount(rel, rel.getJoinType(),
            groupKey, predicate, true);
      }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.optimizer.optiq.reloperators.HiveJoinRel$HiveJoinFactoryImpl

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.