assert(result.getRowCount() >= 0);
}
else {
String msg = String.format("Unexpected execution of SysProc #%d on partition %d",
fragmentId, this.partitionId);
throw new ServerFaultException(msg, txn_id);
}
return new DependencySet(fragmentId, result);
}
// ----------------------------------------------------------------------------
// PROFILER DATA AGGREGATION
// ----------------------------------------------------------------------------
case SysProcFragmentId.PF_nodeMemoryAggregator:
case SysProcFragmentId.PF_txnCounterAggregator:
case SysProcFragmentId.PF_txnProfilerAggregator:
case SysProcFragmentId.PF_execProfilerAggregator:
case SysProcFragmentId.PF_queueProfilerAggregator:
case SysProcFragmentId.PF_markovProfilerAggregator:
case SysProcFragmentId.PF_specexecProfilerAggregator:
case SysProcFragmentId.PF_siteProfilerAggregator:
case SysProcFragmentId.PF_plannerProfilerAggregator:
case SysProcFragmentId.PF_anticacheProfilerAggregator: {
// Do a reverse look up to find the input dependency id
int dataFragmentId = -1;
for (Integer id : STATS_DATA.keySet()) {
Pair<SysProcSelector, Integer> pair = STATS_DATA.get(id);
if (pair.getSecond().equals(fragmentId)) {
dataFragmentId = id.intValue();
break;
}
} // FOR
if (dataFragmentId == -1) {
String msg = "Failed to find input data dependency for SysProc #" + fragmentId;
throw new ServerFaultException(msg, txn_id);
}
VoltTable result = VoltTableUtil.union(dependencies.get(dataFragmentId));
return new DependencySet(fragmentId, result);
}