public Row next() {
Row inputRow = input.next();
if(inputRow != null) {
ValuesHolderRow counterRow = new ValuesHolderRow(bufferRowType.first());
counterRow.valueAt(0).putInt64(counter++);
inputRow = new CompoundRow(bufferRowType, counterRow, inputRow);
}
return inputRow;
}