TTransaction thriftTx = new TTransaction(tx.getWritePointer(), tx.getReadPointer(),
Longs.asList(tx.getInvalids()), Longs.asList(tx.getInProgress()),
tx.getFirstShortInProgress());
TSerializer serializer = new TSerializer();
try {
return serializer.serialize(thriftTx);
} catch (TException te) {
throw new IOException(te);
}
}