/** * Check if the node has been already closed * @return */ public boolean isClosed() { return this.getProcessingState().closed; }
/** * Check if the node has been already closed * @return */ public boolean isClosed() { return this.getProcessingState().closed; }
/** * @return Returns the nodeStatistics. * @since 4.2 */ public RelationalNodeStatistics getNodeStatistics() { return this.getProcessingState().nodeStatistics; }
/** * Check if the node has been already closed * @return */ public boolean isClosed() { return this.getProcessingState().closed; }
/** * @return Returns the nodeStatistics. * @since 4.2 */ public RelationalNodeStatistics getNodeStatistics() { return this.getProcessingState().nodeStatistics; }
/** * @return Returns the nodeStatistics. * @since 4.2 */ public RelationalNodeStatistics getNodeStatistics() { return this.getProcessingState().nodeStatistics; }
protected int getBatchSize() { return this.getProcessingState().batchSize; }
public boolean isLastBatch() { return getProcessingState().lastBatch; }
protected boolean hasPendingRows() { return this.getProcessingState().batchRows != null; }
public CommandContext getContext() { return this.getProcessingState().context; }
protected void addBatchRow(List<?> row) { if(this.getProcessingState().batchRows == null) { this.getProcessingState().batchRows = new ArrayList(this.getProcessingState().batchSize / 4); } this.getProcessingState().batchRows.add(row); }
protected boolean isBatchFull() { return (this.getProcessingState().batchRows != null) && (this.getProcessingState().batchRows.size() >= this.getProcessingState().batchSize); }
protected void addBatchRow(List<?> row) { if(this.getProcessingState().batchRows == null) { this.getProcessingState().batchRows = new ArrayList(this.getProcessingState().batchSize / 4); } this.getProcessingState().batchRows.add(row); }
protected void addBatchRow(List<?> row) { if(this.getProcessingState().batchRows == null) { this.getProcessingState().batchRows = new ArrayList(this.getProcessingState().batchSize / 4); } this.getProcessingState().batchRows.add(row); }
public void reset() { for(int i=0; i<children.length; i++) { if(children[i] != null) { children[i].reset(); } else { break; } } if (this.getProcessingState() != null) { this.getProcessingState().reset(); } }
public void initialize(CommandContext context, BufferManager bufferManager, ProcessorDataManager dataMgr) { this.getProcessingState().context = context; this.getProcessingState().bufferManager = bufferManager; this.getProcessingState().dataMgr = dataMgr; if(context.getCollectNodeStatistics()) { this.getProcessingState().nodeStatistics = new RelationalNodeStatistics(); } if (getOutputElements() != null) { this.getProcessingState().batchSize = bufferManager.getProcessorBatchSize(getOutputElements()); } else { this.getProcessingState().batchSize = bufferManager.getProcessorBatchSize(); } }
public void reset() { for(int i=0; i<children.length; i++) { if(children[i] != null) { children[i].reset(); } else { break; } } if (this.getProcessingState() != null) { this.getProcessingState().reset(); } }
public void initialize(CommandContext context, BufferManager bufferManager, ProcessorDataManager dataMgr) { this.getProcessingState().context = context; this.getProcessingState().bufferManager = bufferManager; this.getProcessingState().dataMgr = dataMgr; if(context.getCollectNodeStatistics()) { this.getProcessingState().nodeStatistics = new RelationalNodeStatistics(); } if (getOutputElements() != null) { this.getProcessingState().batchSize = bufferManager.getProcessorBatchSize(getOutputElements()); } else { this.getProcessingState().batchSize = bufferManager.getProcessorBatchSize(); } }
public void reset() { for(int i=0; i<children.length; i++) { if(children[i] != null) { children[i].reset(); } else { break; } } if (this.getProcessingState() != null) { this.getProcessingState().reset(); } }
public final void close() throws TeiidComponentException { if (!this.getProcessingState().closed) { closeDirect(); for(int i=0; i<children.length; i++) { if(children[i] != null) { children[i].close(); } else { break; } } this.getProcessingState().closed = true; } }