private void close() { if (this.collectionBuffer != null) { collectionBuffer.remove(); this.collectionBuffer = null; } if (this.sortUtility != null) { sortUtility.remove(); this.sortUtility = null; } }
public void closeDirect() { if(this.output != null) { if (!usingOutput) { this.output.remove(); } this.output = null; } if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } this.outputTs = null; }
public void closeDirect() { if(this.output != null) { if (!usingOutput) { this.output.remove(); } this.output = null; } if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } this.outputTs = null; }
private void close() { if (this.collectionBuffer != null) { collectionBuffer.remove(); this.collectionBuffer = null; } if (this.sortUtility != null) { sortUtility.remove(); this.sortUtility = null; } }
private void close() { if (this.collectionBuffer != null) { collectionBuffer.remove(); this.collectionBuffer = null; } if (this.sortUtility != null) { sortUtility.remove(); this.sortUtility = null; } }
public void closeDirect() { if(this.output != null) { if (!usingOutput) { this.output.remove(); } this.output = null; } if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } this.outputTs = null; }
public void close() { if (this.sortUtility != null) { this.sortUtility.remove(); sortUtility = null; } if (dvs != null) { if (dvs != originalVs) { dvs.getTupleBuffer().remove(); } dvs = null; } }
public void close() { if (this.sortUtility != null) { this.sortUtility.remove(); sortUtility = null; } if (dvs != null) { if (dvs != originalVs) { dvs.getTupleBuffer().remove(); } dvs = null; } }
public void close() { if (this.sortUtility != null) { this.sortUtility.remove(); sortUtility = null; } if (dvs != null) { if (dvs != originalVs) { dvs.getTupleBuffer().remove(); } dvs = null; } }
public void close() { closeBuffer(); if (buffers != null) { for (TupleBuffer tb : buffers) { tb.remove(); } } this.buffers = null; this.open = false; if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } }
public void closeDirect() { if (this.sortBuffer != null) { this.sortBuffer.remove(); this.sortBuffer = null; } if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } if (this.tree != null) { this.tree.remove(); this.tree = null; } }
public void close() { closeBuffer(); if (buffers != null) { for (TupleBuffer tb : buffers) { tb.remove(); } } this.buffers = null; this.open = false; if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } }
public TupleBuffer sort(int rowLimit) throws TeiidComponentException, TeiidProcessingException { boolean success = false; try { if(this.phase == INITIAL_SORT) { initialSort(false, false, rowLimit); } if(this.phase == MERGE) { mergePhase(rowLimit); } success = true; return this.activeTupleBuffers.get(0); } catch (BlockedException e) { success = true; throw e; } finally { if (!success) { remove(); } } }
public void closeDirect() { if (this.sortBuffer != null) { this.sortBuffer.remove(); this.sortBuffer = null; } if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } if (this.tree != null) { this.tree.remove(); this.tree = null; } }
public void close() { closeBuffer(); if (buffers != null) { for (TupleBuffer tb : buffers) { tb.remove(); } } this.buffers = null; this.open = false; if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } }
public void closeDirect() { if (this.sortBuffer != null) { this.sortBuffer.remove(); this.sortBuffer = null; } if (this.sortUtility != null) { this.sortUtility.remove(); this.sortUtility = null; } if (this.tree != null) { this.tree.remove(); this.tree = null; } }
public TupleBuffer sort(int rowLimit) throws TeiidComponentException, TeiidProcessingException { boolean success = false; try { waitForWork(); synchronized (this) { if(this.phase == INITIAL_SORT) { initialSort(false, false, rowLimit); } if(this.phase == MERGE) { mergePhase(rowLimit); } success = true; return this.activeTupleBuffers.get(0); } } catch (BlockedException e) { success = true; throw e; } finally { if (!success) { remove(); } } }
public TupleBuffer sort(int rowLimit) throws TeiidComponentException, TeiidProcessingException { boolean success = false; try { waitForWork(); synchronized (this) { if(this.phase == INITIAL_SORT) { initialSort(false, false, rowLimit); } if(this.phase == MERGE) { mergePhase(rowLimit); } success = true; return this.activeTupleBuffers.get(0); } } catch (BlockedException e) { success = true; throw e; } finally { if (!success) { remove(); } } }
public List<TupleBuffer> onePassSort(boolean lowLatency) throws TeiidComponentException, TeiidProcessingException { boolean success = false; try { if(this.phase == INITIAL_SORT) { initialSort(true, lowLatency, -1); if (!isDoneReading()) { this.phase = INITIAL_SORT; } } for (TupleBuffer tb : activeTupleBuffers) { tb.close(); tb.setForwardOnly(false); //it is up to the caller to set the flag now } success = true; return activeTupleBuffers; } catch (BlockedException e) { success = true; throw e; } finally { if (!success) { remove(); } } }
public List<TupleBuffer> onePassSort(boolean lowLatency) throws TeiidComponentException, TeiidProcessingException { boolean success = false; try { if(this.phase == INITIAL_SORT) { initialSort(true, lowLatency, -1); if (!isDoneReading()) { this.phase = INITIAL_SORT; } } for (TupleBuffer tb : activeTupleBuffers) { tb.close(); tb.setForwardOnly(false); //it is up to the caller to set the flag now } success = true; return activeTupleBuffers; } catch (BlockedException e) { success = true; throw e; } finally { if (!success) { remove(); } } }