@Test public void testCumulativeCalculation() { RelationalNode[] children = new RelationalNode[2]; children[0] = createFakeNode(createData(1)); children[1] = createFakeNode(createData(1)); children[0].getNodeStatistics().setBatchEndTime(100); children[0].getNodeStatistics().collectCumulativeNodeStats(0l, RelationalNodeStatistics.BATCHCOMPLETE_STOP); children[0].getNodeStatistics().collectNodeStats(new RelationalNode[0]); children[1].getNodeStatistics().setBatchEndTime(200); children[1].getNodeStatistics().collectCumulativeNodeStats(0l, RelationalNodeStatistics.BATCHCOMPLETE_STOP); children[1].getNodeStatistics().collectNodeStats(new RelationalNode[0]); RelationalNodeStatistics stats = new RelationalNodeStatistics(); stats.setBatchEndTime(1000); stats.setBatchStartTime(0); stats.collectCumulativeNodeStats(null, RelationalNodeStatistics.BLOCKEDEXCEPTION_STOP); stats.collectNodeStats(children); assertEquals(1000, stats.getNodeCumulativeProcessingTime()); assertEquals(700, stats.getNodeNextBatchProcessingTime()); }
this.getProcessingState().nodeStatistics.collectCumulativeNodeStats((long)batch.getRowCount(), RelationalNodeStatistics.BATCHCOMPLETE_STOP); if (batch.getTerminationFlag()) { this.getProcessingState().nodeStatistics.collectNodeStats(this.getChildren());
this.getProcessingState().nodeStatistics.collectCumulativeNodeStats((long)batch.getRowCount(), RelationalNodeStatistics.BATCHCOMPLETE_STOP); if (batch.getTerminationFlag()) { this.getProcessingState().nodeStatistics.collectNodeStats(this.getChildren());
this.getProcessingState().nodeStatistics.collectNodeStats(this.getChildren()); if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_DQP, MessageLevel.TRACE) && !buffer.isForwardOnly()) { for (long i = 1; i <= buffer.getRowCount(); i+=buffer.getBatchSize()) {
this.getProcessingState().nodeStatistics.collectCumulativeNodeStats((long)batch.getRowCount(), RelationalNodeStatistics.BATCHCOMPLETE_STOP); if (batch.getTerminationFlag()) { this.getProcessingState().nodeStatistics.collectNodeStats(this.getChildren());
this.getProcessingState().nodeStatistics.collectNodeStats(this.getChildren()); if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_DQP, MessageLevel.TRACE) && !buffer.isForwardOnly()) { for (long i = 1; i <= buffer.getRowCount(); i+=buffer.getBatchSize()) {
this.getProcessingState().nodeStatistics.collectNodeStats(this.getChildren()); if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_DQP, MessageLevel.TRACE) && !buffer.isForwardOnly()) { for (long i = 1; i <= buffer.getRowCount(); i+=buffer.getBatchSize()) {