public TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException { if(this.phase == SORT) { sortPhase(); } return outputPhase(); }
public TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException { if(this.phase == SORT) { sortPhase(); } return outputPhase(); }
public TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException { if(this.phase == SORT) { sortPhase(); } return outputPhase(); }
@Override public TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException { if (this.isClosed()) { throw new AssertionError("called after close"); //$NON-NLS-1$ } this.rowLimit = maxRows; if (this.output == null) { sortPhase(); } usingOutput = true; TupleBuffer result = this.output; if (this.output.isFinal()) { this.output = null; close(); } return result; }
@Override public TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException { if (this.isClosed()) { throw new AssertionError("called after close"); //$NON-NLS-1$ } this.rowLimit = maxRows; if (this.output == null) { sortPhase(); } usingOutput = true; TupleBuffer result = this.output; if (this.output.isFinal()) { this.output = null; close(); } return result; }
@Override public TupleBuffer getBufferDirect(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException { if (this.isClosed()) { throw new AssertionError("called after close"); //$NON-NLS-1$ } this.rowLimit = maxRows; if (this.output == null) { sortPhase(); } usingOutput = true; TupleBuffer result = this.output; if (this.output.isFinal()) { this.output = null; close(); } return result; }