Examples of JoinType


Examples of org.apache.pig.impl.logicalLayer.LOJoin.JOINTYPE

       
        // mapping of inner plans for each input
        MultiMap<Integer, LogicalExpressionPlan> joinPlans =
                        new MultiMap<Integer, LogicalExpressionPlan>();
       
        JOINTYPE type = loj.getJoinType();
        org.apache.pig.newplan.logical.relational.LOJoin.JOINTYPE newType = org.apache.pig.newplan.logical.relational.LOJoin.JOINTYPE.HASH;;
        switch(type) {       
        case REPLICATED:
            newType = org.apache.pig.newplan.logical.relational.LOJoin.JOINTYPE.REPLICATED;
            break;         
View Full Code Here

Examples of org.apache.pig.impl.logicalLayer.LOJoin.JOINTYPE

            for (LogicalPlan lp : plans) {                              
                joinPlans.put(i, translateExpressionPlan(lp));
            }       
        }
       
        JOINTYPE type = loj.getJoinType();
        org.apache.pig.experimental.logical.relational.LOJoin.JOINTYPE newType = org.apache.pig.experimental.logical.relational.LOJoin.JOINTYPE.HASH;;
        switch(type) {       
        case REPLICATED:
            newType = org.apache.pig.experimental.logical.relational.LOJoin.JOINTYPE.REPLICATED;
            break;         
View Full Code Here

Examples of org.apache.tajo.algebra.JoinType

    LogicalNode left = joinNode.getRightChild();
    LogicalNode right = joinNode.getLeftChild();

    // here we should stop selection pushdown on the null supplying side(s) of an outer join
    // get the two operands of the join operation as well as the join type
    JoinType joinType = joinNode.getJoinType();
    EvalNode joinQual = joinNode.getJoinQual();
    if (joinQual != null && isOuterJoin(joinType)) {

      // if both are fields
       if (joinQual.getLeftExpr().getType() == EvalType.FIELD && joinQual.getRightExpr().getType() == EvalType.FIELD) {
View Full Code Here

Examples of org.apache.torque.criteria.JoinType

        for (int i = 0; i < criteriaJoins.size(); i++)
        {
            Join join = criteriaJoins.get(i);
            // Check the join type and add the join to the
            // appropriate places in the query
            JoinType joinType  = join.getJoinType();

            if (joinType == null)
            {
                // Do not treat join as explicit join, but add
                // the join condition to the where clauses
View Full Code Here

Examples of org.datanucleus.query.expression.JoinExpression.JoinType

        while (rightExpr != null)
        {
            if (rightExpr instanceof JoinExpression)
            {
                JoinExpression joinExpr = (JoinExpression)rightExpr;
                JoinType joinType = joinExpr.getType();
                String joinAlias = joinExpr.getAlias();
                PrimaryExpression joinPrimExpr = joinExpr.getPrimaryExpression();

                Iterator<String> iter = joinPrimExpr.getTuples().iterator();
                String rootId = iter.next();
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.SQLJoin.JoinType

                " using INNER JOIN");
            // TODO What if the variable is declared as a subtype, handle this see CollectionContainsMethod
        }
        else if (!stmt.getQueryGenerator().hasExplicitJoins())
        {
            JoinType joinType = stmt.getJoinTypeForTable(valExpr.getSQLTable());
            if (joinType == JoinType.CROSS_JOIN)
            {
                // Value is currently joined via CROSS JOIN, so remove it (and use INNER JOIN below)
                valAlias = stmt.removeCrossJoin(valExpr.getSQLTable());
                valIsUnbound = true;
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.SQLJoin.JoinType

                " using INNER JOIN");
            // TODO What if the variable is declared as a subtype, handle this see CollectionContainsMethod
        }
        else if (!stmt.getQueryGenerator().hasExplicitJoins())
        {
            JoinType joinType = stmt.getJoinTypeForTable(keyExpr.getSQLTable());
            if (joinType == JoinType.CROSS_JOIN)
            {
                keyAlias = stmt.removeCrossJoin(keyExpr.getSQLTable());
                keyIsUnbound = true;
                NucleusLogger.QUERY.debug(">> map.containsKey(" + keyExpr +
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.SQLJoin.JoinType

            NucleusLogger.QUERY.debug(">> collection.contains(" + elemExpr + ") binding unbound variable " + varName +
                " using INNER JOIN");
        }
        else if (!stmt.getQueryGenerator().hasExplicitJoins())
        {
            JoinType joinType = stmt.getJoinTypeForTable(elemExpr.getSQLTable());
            if (joinType == JoinType.CROSS_JOIN)
            {
                elemAlias = stmt.removeCrossJoin(elemExpr.getSQLTable());
                elemIsUnbound = true;
                elemType = elemExpr.getJavaTypeMapping().getType();
View Full Code Here

Examples of org.hibernate.sql.JoinType

    // The path AST should be a DotNode, and it should have been evaluated already.
    if ( path.getType() != SqlTokenTypes.DOT ) {
      throw new SemanticException( "Path expected for join!" );
    }
    DotNode dot = (DotNode) path;
    JoinType hibernateJoinType = JoinProcessor.toHibernateJoinType( joinType );
    dot.setJoinType( hibernateJoinType );    // Tell the dot node about the join type.
    dot.setFetch( fetch );
    // Generate an explicit join for the root dot node.   The implied joins will be collected and passed up
    // to the root dot node.
    dot.resolve( true, false, alias == null ? null : alias.getText() );
View Full Code Here

Examples of org.hibernate.sql.JoinType

    final String[] idCols = StringHelper.qualify( name, getIdentifierColumnNames() );
    final JoinFragment join = getFactory().getDialect().createOuterJoinFragment();
    final int tableSpan = getSubclassTableSpan();
    // IMPL NOTE : notice that we skip the first table; it is the driving table!
    for ( int j = 1; j < tableSpan; j++ ) {
      final JoinType joinType = determineSubclassTableJoinType(
          j,
          innerJoin,
          includeSubclasses,
          treatAsDeclarations
      );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.