/** * @see org.teiid.query.processor.relational.RelationalNode#clone() * @since 4.2 */ public Object clone() { JoinNode clonedNode = new JoinNode(super.getID()); super.copyTo(clonedNode); clonedNode.joinType = this.joinType; clonedNode.joinStrategy = this.joinStrategy.clone(); clonedNode.joinCriteria = this.joinCriteria; clonedNode.leftExpressions = leftExpressions; clonedNode.rightExpressions = rightExpressions; clonedNode.dependentValueSource = this.dependentValueSource; clonedNode.rightDistinct = rightDistinct; clonedNode.leftDistinct = leftDistinct; return clonedNode; }
/** * @see org.teiid.query.processor.relational.RelationalNode#clone() * @since 4.2 */ public Object clone() { JoinNode clonedNode = new JoinNode(super.getID()); super.copyTo(clonedNode); clonedNode.joinType = this.joinType; clonedNode.joinStrategy = this.joinStrategy.clone(); clonedNode.joinCriteria = this.joinCriteria; clonedNode.leftExpressions = leftExpressions; clonedNode.rightExpressions = rightExpressions; clonedNode.dependentValueSource = this.dependentValueSource; clonedNode.rightDistinct = rightDistinct; clonedNode.leftDistinct = leftDistinct; return clonedNode; }
/** * @see org.teiid.query.processor.relational.RelationalNode#clone() * @since 4.2 */ public Object clone() { JoinNode clonedNode = new JoinNode(super.getID()); super.copyTo(clonedNode); clonedNode.joinType = this.joinType; clonedNode.joinStrategy = this.joinStrategy.clone(); clonedNode.joinCriteria = this.joinCriteria; clonedNode.leftExpressions = leftExpressions; clonedNode.rightExpressions = rightExpressions; clonedNode.dependentValueSource = this.dependentValueSource; clonedNode.rightDistinct = rightDistinct; clonedNode.leftDistinct = leftDistinct; return clonedNode; }
joinStrategy = new MergeJoinStrategy(SortOption.SORT_DISTINCT, SortOption.SORT_DISTINCT, false); join = new JoinNode(3); join.setElements(joinElements); join.setJoinType(joinType);
joinElements.addAll(rightNode.getElements()); join = new JoinNode(3); join.setElements(joinElements); join.setJoinType(joinType);
joinElements.add(es2); join = new JoinNode(3); joinStrategy = new NestedLoopJoinStrategy(); join.setJoinStrategy(joinStrategy);
JoinStrategyType stype = (JoinStrategyType) node.getProperty(NodeConstants.Info.JOIN_STRATEGY); JoinNode jnode = new JoinNode(getID()); jnode.setJoinType(jtype); jnode.setLeftDistinct(node.hasBooleanProperty(NodeConstants.Info.IS_LEFT_DISTINCT)); JoinNode joinAsSet = new JoinNode(getID()); joinAsSet.setJoinStrategy(new MergeJoinStrategy(SortOption.SORT_DISTINCT, SortOption.SORT_DISTINCT, true));
JoinStrategyType stype = (JoinStrategyType) node.getProperty(NodeConstants.Info.JOIN_STRATEGY); JoinNode jnode = new JoinNode(getID()); jnode.setJoinType(jtype); jnode.setLeftDistinct(node.hasBooleanProperty(NodeConstants.Info.IS_LEFT_DISTINCT)); JoinNode joinAsSet = new JoinNode(getID()); joinAsSet.setJoinStrategy(new MergeJoinStrategy(SortOption.SORT_DISTINCT, SortOption.SORT_DISTINCT, true));
JoinStrategyType stype = (JoinStrategyType) node.getProperty(NodeConstants.Info.JOIN_STRATEGY); JoinNode jnode = new JoinNode(getID()); jnode.setJoinType(jtype); jnode.setLeftDistinct(node.hasBooleanProperty(NodeConstants.Info.IS_LEFT_DISTINCT)); JoinNode joinAsSet = new JoinNode(getID()); joinAsSet.setJoinStrategy(new MergeJoinStrategy(SortOption.SORT_DISTINCT, SortOption.SORT_DISTINCT, true));