@Override protected void loadLeft() throws TeiidComponentException, TeiidProcessingException { if (this.joinNode.isDependent()) { this.leftSource.getTupleBuffer(); } }
@Override protected void loadLeft() throws TeiidComponentException, TeiidProcessingException { if (this.joinNode.isDependent()) { this.leftSource.getTupleBuffer(); } }
@Override protected void loadLeft() throws TeiidComponentException, TeiidProcessingException { if (this.joinNode.isDependent()) { this.leftSource.getTupleBuffer(); } }
public void openInternal() throws TeiidComponentException, TeiidProcessingException { // Set Up Join Strategy this.joinStrategy.initialize(this); if (isDependent() && (this.joinType == JoinType.JOIN_ANTI_SEMI || this.joinType == JoinType.JOIN_SEMI)) { joinStrategy.openRight(); } else { joinStrategy.openLeft(); } if(!isDependent()) { joinStrategy.openRight(); } this.state = State.LOAD_LEFT; }
public void open() throws TeiidComponentException, TeiidProcessingException { // Set Up Join Strategy this.joinStrategy.initialize(this); if (isDependent() && (this.joinType == JoinType.JOIN_ANTI_SEMI || this.joinType == JoinType.JOIN_SEMI)) { joinStrategy.openRight(); } else { joinStrategy.openLeft(); } if(!isDependent()) { joinStrategy.openRight(); } this.state = State.LOAD_LEFT; }
public void openInternal() throws TeiidComponentException, TeiidProcessingException { // Set Up Join Strategy this.joinStrategy.initialize(this); if (isDependent() && (this.joinType == JoinType.JOIN_ANTI_SEMI || this.joinType == JoinType.JOIN_SEMI)) { joinStrategy.openRight(); } else { joinStrategy.openLeft(); } if(!isDependent()) { joinStrategy.openRight(); } this.state = State.LOAD_LEFT; }
/** * @see org.teiid.query.processor.relational.RelationalNode#getNodeString(java.lang.StringBuffer) * @since 4.2 */ protected void getNodeString(StringBuffer str) { str.append(getClassName()); str.append("("); //$NON-NLS-1$ str.append(getID()); str.append(") [");//$NON-NLS-1$ if(isDependent()) { str.append("Dependent] [");//$NON-NLS-1$ } str.append(this.joinStrategy.toString()); str.append("] [");//$NON-NLS-1$ str.append(this.joinType.toString()); str.append("]"); //$NON-NLS-1$ if (getJoinType() != JoinType.JOIN_CROSS) { str.append(" criteria=").append(getCriteriaList()); //$NON-NLS-1$ } str.append(" output="); //$NON-NLS-1$ str.append(getElements()); }
/** * @see org.teiid.query.processor.relational.RelationalNode#getNodeString(java.lang.StringBuffer) * @since 4.2 */ protected void getNodeString(StringBuffer str) { str.append(getClassName()); str.append("("); //$NON-NLS-1$ str.append(getID()); str.append(") [");//$NON-NLS-1$ if(isDependent()) { str.append("Dependent] [");//$NON-NLS-1$ } str.append(this.joinStrategy.toString()); str.append("] [");//$NON-NLS-1$ str.append(this.joinType.toString()); str.append("]"); //$NON-NLS-1$ if (getJoinType() != JoinType.JOIN_CROSS) { str.append(" criteria=").append(getCriteriaList()); //$NON-NLS-1$ } str.append(" output="); //$NON-NLS-1$ str.append(getElements()); }
/** * @see org.teiid.query.processor.relational.RelationalNode#getNodeString(java.lang.StringBuffer) * @since 4.2 */ protected void getNodeString(StringBuffer str) { str.append(getClassName()); str.append("("); //$NON-NLS-1$ str.append(getID()); str.append(") [");//$NON-NLS-1$ if(isDependent()) { str.append("Dependent] [");//$NON-NLS-1$ } str.append(this.joinStrategy.toString()); str.append("] [");//$NON-NLS-1$ str.append(this.joinType.toString()); str.append("]"); //$NON-NLS-1$ if (getJoinType() != JoinType.JOIN_CROSS) { str.append(" criteria=").append(getCriteriaList()); //$NON-NLS-1$ } str.append(" output="); //$NON-NLS-1$ str.append(getElements()); }
/** * @see org.teiid.query.processor.relational.RelationalNode#getDescriptionProperties() * @since 4.2 */ public PlanNode getDescriptionProperties() { // Default implementation - should be overridden PlanNode props = super.getDescriptionProperties(); if(isDependent()) { props.addProperty(PROP_DEPENDENT, Boolean.TRUE.toString()); } props.addProperty(PROP_JOIN_STRATEGY, this.joinStrategy.toString()); props.addProperty(PROP_JOIN_TYPE, this.joinType.toString()); List<String> critList = getCriteriaList(); props.addProperty(PROP_JOIN_CRITERIA, critList); return props; }
/** * @see org.teiid.query.processor.relational.RelationalNode#getDescriptionProperties() * @since 4.2 */ public PlanNode getDescriptionProperties() { // Default implementation - should be overridden PlanNode props = super.getDescriptionProperties(); if(isDependent()) { props.addProperty(PROP_DEPENDENT, Boolean.TRUE.toString()); } props.addProperty(PROP_JOIN_STRATEGY, this.joinStrategy.toString()); props.addProperty(PROP_JOIN_TYPE, this.joinType.toString()); List<String> critList = getCriteriaList(); props.addProperty(PROP_JOIN_CRITERIA, critList); return props; }
/** * @see org.teiid.query.processor.relational.RelationalNode#getDescriptionProperties() * @since 4.2 */ public PlanNode getDescriptionProperties() { // Default implementation - should be overridden PlanNode props = super.getDescriptionProperties(); if(isDependent()) { props.addProperty(PROP_DEPENDENT, Boolean.TRUE.toString()); } props.addProperty(PROP_JOIN_STRATEGY, this.joinStrategy.toString()); props.addProperty(PROP_JOIN_TYPE, this.joinType.toString()); List<String> critList = getCriteriaList(); props.addProperty(PROP_JOIN_CRITERIA, critList); return props; }
public TupleBatch nextBatchDirect() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { return nextBatchDirectInternal(); } finally { context.setParallel(old); } } return nextBatchDirectInternal(); }
public TupleBatch nextBatchDirect() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { return nextBatchDirectInternal(); } finally { context.setParallel(old); } } return nextBatchDirectInternal(); }
public void open() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { openInternal(); } finally { context.setParallel(old); } } else { openInternal(); } }
public void open() throws TeiidComponentException, TeiidProcessingException { CommandContext context = getContext(); if (!isDependent()) { boolean old = context.setParallel(true); try { openInternal(); } finally { context.setParallel(old); } } else { openInternal(); } }
updateCounts(NestedTableJoinStrategy.class, counts, types); if (((JoinNode)relationalNode).isDependent()) { updateCounts(DependentJoin.class, counts, types);
boolean rightDep = false; if (isDependent() && (this.joinType == JoinType.JOIN_ANTI_SEMI || this.joinType == JoinType.JOIN_SEMI)) { rightDep = true; this.joinStrategy.openRight(); if (isDependent() && !rightDep) { TupleBuffer buffer = this.joinStrategy.leftSource.getTupleBuffer(); if (!isDependent()) { if (getJoinType() != JoinType.JOIN_FULL_OUTER && this.joinStrategy.leftSource.getSortUtility() == null && this.joinStrategy.leftSource.rowCountLE(0)) { this.terminateBatches();
boolean rightDep = false; if (isDependent() && (this.joinType == JoinType.JOIN_ANTI_SEMI || this.joinType == JoinType.JOIN_SEMI)) { rightDep = true; this.joinStrategy.openRight(); if (isDependent() && !rightDep) { TupleBuffer buffer = this.joinStrategy.leftSource.getTupleBuffer(); if (!isDependent()) { if (getJoinType() != JoinType.JOIN_FULL_OUTER && this.joinStrategy.leftSource.getSortUtility() == null && this.joinStrategy.leftSource.rowCountLE(0)) { this.terminateBatches();
boolean rightDep = false; if (isDependent() && (this.joinType == JoinType.JOIN_ANTI_SEMI || this.joinType == JoinType.JOIN_SEMI)) { rightDep = true; this.joinStrategy.openRight(); if (isDependent() && !rightDep) { TupleBuffer buffer = this.joinStrategy.leftSource.getTupleBuffer(); if (!isDependent()) { if (getJoinType() != JoinType.JOIN_FULL_OUTER && this.joinStrategy.leftSource.getSortUtility() == null && this.joinStrategy.leftSource.rowCountLE(0)) { this.terminateBatches();