private static PTable deserializeTable(byte[] b) { try { PTableProtos.PTable ptableProto = PTableProtos.PTable.parseFrom(b); return PTableImpl.createFromProto(ptableProto); } catch (IOException e) { throw new RuntimeException(e); } }
public static byte[] serialize(PTable projectedTable) { PTableProtos.PTable ptableProto = PTableImpl.toProto(projectedTable); return ptableProto.toByteArray(); }