public void Read(TProtocol iprot) { var isset_status = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Status = new TStatus(); Status.Read(iprot); isset_status = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { OperationHandle = new TOperationHandle(); OperationHandle.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_status) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TCloseOperationReq(TOperationHandle operationHandle) : this() { OperationHandle = operationHandle; }
public TGetOperationStatusReq(TOperationHandle operationHandle) : this() { OperationHandle = operationHandle; }
public TGetResultSetMetadataReq(TOperationHandle operationHandle) : this() { OperationHandle = operationHandle; }
public TCancelOperationReq(TOperationHandle operationHandle) : this() { OperationHandle = operationHandle; }
public void Read(TProtocol iprot) { var isset_operationHandle = false; var isset_orientation = false; var isset_maxRows = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { OperationHandle = new TOperationHandle(); OperationHandle.Read(iprot); isset_operationHandle = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { Orientation = (TFetchOrientation)iprot.ReadI32(); isset_orientation = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I64) { MaxRows = iprot.ReadI64(); isset_maxRows = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_operationHandle) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_orientation) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_maxRows) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TFetchResultsReq(TOperationHandle operationHandle, TFetchOrientation orientation, Int64 maxRows) : this() { OperationHandle = operationHandle; Orientation = orientation; MaxRows = maxRows; }