in modules/core/src/main/java/org/apache/fluo/recipes/core/types/TypedTransactionBase.java [112:122]
public int increment(int i) throws AlreadySetException {
checkNotSet();
Bytes val = tx.get(data.row, data.getCol());
int v = 0;
if (val != null) {
v = encoder.decodeInteger(val);
}
tx.set(data.row, data.getCol(), encoder.encode(v + i));
return v;
}