private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
if (struct.block_index != null) { oprot.writeFieldBegin(BLOCK_INDEX_FIELD_DESC); struct.block_index.write(oprot); oprot.writeFieldEnd();
if (struct.isSetBlocklet_index()) { oprot.writeFieldBegin(BLOCKLET_INDEX_FIELD_DESC); struct.blocklet_index.write(oprot); oprot.writeFieldEnd();
for (BlockletIndex _iter178 : struct.blocklet_index_list) _iter178.write(oprot);
for (BlockletIndex _iter149 : struct.blocklet_index_list) _iter149.write(oprot);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BlockletHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.blocklet_length); oprot.writeI32(struct.mutation.getValue()); struct.blocklet_info.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetBlocklet_index()) { optionals.set(0); } if (struct.isSetDictionary()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetBlocklet_index()) { struct.blocklet_index.write(oprot); } if (struct.isSetDictionary()) { struct.dictionary.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BlockIndex struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.num_rows); oprot.writeString(struct.file_name); oprot.writeI64(struct.offset); struct.block_index.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetBlocklet_info()) { optionals.set(0); } if (struct.isSetFile_size()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetBlocklet_info()) { struct.blocklet_info.write(oprot); } if (struct.isSetFile_size()) { oprot.writeI64(struct.file_size); } }
for (BlockletIndex _iter181 : struct.blocklet_index_list) _iter181.write(oprot);
for (BlockletIndex _iter153 : struct.blocklet_index_list) _iter153.write(oprot);