Source:
<code>public void merge(MergeStatisticsHolder second) throws StandardException { ExecRow nextRow = second.tableMergedStatistics; long conglomId = nextRow.getColumn(SYSCOLUMNSTATISTICSRowFactory.CONGLOMID).getLong(); long partitionRowCount = nextRow.getColumn(SYSTABLESTATISTICSRowFactory.ROWCOUNT).getLong(); long rowCount = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.ROWCOUNT).getLong() + partitionRowCount; long totalSize = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.PARTITION_SIZE).getLong() + nextRow.getColumn(SYSTABLESTATISTICSRowFactory.PARTITION_SIZE).getLong(); long avgRowWidth = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.MEANROWWIDTH).getLong() + nextRow.getColumn(SYSTABLESTATISTICSRowFactory.MEANROWWIDTH).getLong(); <START> long numberOfPartitions = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.NUMBEROFPARTITIONS).getLong() + 1; <END> int statsType = nextRow.getColumn(SYSTABLESTATISTICSRowFactory.STATSTYPE).getInt(); double sampleFraction = nextRow.getColumn(SYSTABLESTATISTICSRowFactory.SAMPLEFRACTION).getDouble(); tableMergedStatistics = generateTemporaryRowFromStats(conglomId, "-All-", rowCount, totalSize, avgRowWidth, numberOfPartitions, statsType, sampleFraction); for (Map.Entry<Integer, ColumnStatisticsMerge> entry : columnStatisticsMergeHashMap.entrySet()) { ColumnStatisticsMerge itemStatistics = second.columnStatisticsMergeHashMap.get(entry.getKey()); if (itemStatistics != null) { ColumnStatisticsMerge builder = entry.getValue(); builder.merge(itemStatistics); } } for (Map.Entry<Integer, ColumnStatisticsMerge> entry : second.columnStatisticsMergeHashMap.entrySet()) { if (!columnStatisticsMergeHashMap.containsKey(entry.getKey())) { columnStatisticsMergeHashMap.put(entry.getKey(), entry.getValue()); } } }</code><technical_language>Is use: long numberOfPartitions = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.NUMBEROFPARTITIONS).getLong() + nextRow.getColumn(SYSTABLESTATISTICSRowFactory.NUMBEROFPARTITIONS).getLong();</technical_language>

Target:
public void merge(MergeStatisticsHolder second) throws StandardException { ExecRow nextRow = second.tableMergedStatistics; long conglomId = nextRow.getColumn(SYSCOLUMNSTATISTICSRowFactory.CONGLOMID).getLong(); long partitionRowCount = nextRow.getColumn(SYSTABLESTATISTICSRowFactory.ROWCOUNT).getLong(); long rowCount = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.ROWCOUNT).getLong() + partitionRowCount; long totalSize = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.PARTITION_SIZE).getLong() + nextRow.getColumn(SYSTABLESTATISTICSRowFactory.PARTITION_SIZE).getLong(); long avgRowWidth = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.MEANROWWIDTH).getLong() + nextRow.getColumn(SYSTABLESTATISTICSRowFactory.MEANROWWIDTH).getLong(); long numberOfPartitions = tableMergedStatistics.getColumn(SYSTABLESTATISTICSRowFactory.NUMBEROFPARTITIONS).getLong() + nextRow.getColumn(SYSTABLESTATISTICSRowFactory.NUMBEROFPARTITIONS).getLong(); int statsType = nextRow.getColumn(SYSTABLESTATISTICSRowFactory.STATSTYPE).getInt(); double sampleFraction = nextRow.getColumn(SYSTABLESTATISTICSRowFactory.SAMPLEFRACTION).getDouble(); tableMergedStatistics = generateTemporaryRowFromStats(conglomId, "-All-", rowCount, totalSize, avgRowWidth, numberOfPartitions, statsType, sampleFraction); for (Map.Entry<Integer, ColumnStatisticsMerge> entry : columnStatisticsMergeHashMap.entrySet()) { ColumnStatisticsMerge itemStatistics = second.columnStatisticsMergeHashMap.get(entry.getKey()); if (itemStatistics != null) { ColumnStatisticsMerge builder = entry.getValue(); builder.merge(itemStatistics); } } for (Map.Entry<Integer, ColumnStatisticsMerge> entry : second.columnStatisticsMergeHashMap.entrySet()) { if (!columnStatisticsMergeHashMap.containsKey(entry.getKey())) { columnStatisticsMergeHashMap.put(entry.getKey(), entry.getValue()); } } }