public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (req != null) { req.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (req != null) { req.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (req != null) { req.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (req != null) { req.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TFetchResultsReq struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationHandle != null) { oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC); struct.operationHandle.write(oprot); oprot.writeFieldEnd(); } if (struct.orientation != null) { oprot.writeFieldBegin(ORIENTATION_FIELD_DESC); oprot.writeI32(struct.orientation.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_ROWS_FIELD_DESC); oprot.writeI64(struct.maxRows); oprot.writeFieldEnd(); if (struct.isSetFetchType()) { oprot.writeFieldBegin(FETCH_TYPE_FIELD_DESC); oprot.writeI16(struct.fetchType); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TFetchResultsReq struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationHandle != null) { oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC); struct.operationHandle.write(oprot); oprot.writeFieldEnd(); } if (struct.orientation != null) { oprot.writeFieldBegin(ORIENTATION_FIELD_DESC); oprot.writeI32(struct.orientation.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_ROWS_FIELD_DESC); oprot.writeI64(struct.maxRows); oprot.writeFieldEnd(); if (struct.isSetFetchType()) { oprot.writeFieldBegin(FETCH_TYPE_FIELD_DESC); oprot.writeI16(struct.fetchType); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TFetchResultsReq struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationHandle != null) { oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC); struct.operationHandle.write(oprot); oprot.writeFieldEnd(); } if (struct.orientation != null) { oprot.writeFieldBegin(ORIENTATION_FIELD_DESC); oprot.writeI32(struct.orientation.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_ROWS_FIELD_DESC); oprot.writeI64(struct.maxRows); oprot.writeFieldEnd(); if (struct.isSetFetchType()) { oprot.writeFieldBegin(FETCH_TYPE_FIELD_DESC); oprot.writeI16(struct.fetchType); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TFetchResultsReq struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationHandle != null) { oprot.writeFieldBegin(OPERATION_HANDLE_FIELD_DESC); struct.operationHandle.write(oprot); oprot.writeFieldEnd(); } if (struct.orientation != null) { oprot.writeFieldBegin(ORIENTATION_FIELD_DESC); oprot.writeI32(struct.orientation.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_ROWS_FIELD_DESC); oprot.writeI64(struct.maxRows); oprot.writeFieldEnd(); if (struct.isSetFetchType()) { oprot.writeFieldBegin(FETCH_TYPE_FIELD_DESC); oprot.writeI16(struct.fetchType); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }