throw new IOException(te);
}
}
public Transaction decode(byte[] encoded) throws IOException {
TTransaction thriftTx = new TTransaction();
TDeserializer deserializer = new TDeserializer();
try {
deserializer.deserialize(thriftTx, encoded);
return new Transaction(thriftTx.getReadPointer(), thriftTx.getWritePointer(),
Longs.toArray(thriftTx.getInvalids()), Longs.toArray(thriftTx.getInProgress()),
thriftTx.getFirstShort());
} catch (TException te) {
throw new IOException(te);
}
}