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); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, reportSplitExtent_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.credentials != null) { oprot.writeFieldBegin(CREDENTIALS_FIELD_DESC); struct.credentials.write(oprot); oprot.writeFieldEnd(); } if (struct.serverName != null) { oprot.writeFieldBegin(SERVER_NAME_FIELD_DESC); oprot.writeString(struct.serverName); oprot.writeFieldEnd(); } if (struct.split != null) { oprot.writeFieldBegin(SPLIT_FIELD_DESC); struct.split.write(oprot); oprot.writeFieldEnd(); } if (struct.tinfo != null) { oprot.writeFieldBegin(TINFO_FIELD_DESC); struct.tinfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, reportSplitExtent_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTinfo()) { optionals.set(0); } if (struct.isSetCredentials()) { optionals.set(1); } if (struct.isSetServerName()) { optionals.set(2); } if (struct.isSetSplit()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } if (struct.isSetServerName()) { oprot.writeString(struct.serverName); } if (struct.isSetSplit()) { struct.split.write(oprot); } }
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); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, reportSplitExtent_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.credentials != null) { oprot.writeFieldBegin(CREDENTIALS_FIELD_DESC); struct.credentials.write(oprot); oprot.writeFieldEnd(); } if (struct.serverName != null) { oprot.writeFieldBegin(SERVER_NAME_FIELD_DESC); oprot.writeString(struct.serverName); oprot.writeFieldEnd(); } if (struct.split != null) { oprot.writeFieldBegin(SPLIT_FIELD_DESC); struct.split.write(oprot); oprot.writeFieldEnd(); } if (struct.tinfo != null) { oprot.writeFieldBegin(TINFO_FIELD_DESC); struct.tinfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, reportSplitExtent_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTinfo()) { optionals.set(0); } if (struct.isSetCredentials()) { optionals.set(1); } if (struct.isSetServerName()) { optionals.set(2); } if (struct.isSetSplit()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } if (struct.isSetServerName()) { oprot.writeString(struct.serverName); } if (struct.isSetSplit()) { struct.split.write(oprot); } }