public void Read(TProtocol iprot) { bool isset_status = false; bool isset_infoValue = 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) { InfoValue = new TGetInfoValue(); InfoValue.Read(iprot); isset_infoValue = true; } 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); } if (!isset_infoValue) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TGetTablesResp(TStatus status) : this() { this.Status = status; }
public TGetTypeInfoResp(TStatus status) : this() { this.Status = status; }
public TGetSchemasResp(TStatus status) : this() { this.Status = status; }
public TGetOperationStatusResp(TStatus status) : this() { this.Status = status; }
public TGetFunctionsResp(TStatus status) : this() { this.Status = status; }
public TOpenSessionResp(TStatus status, TProtocolVersion serverProtocolVersion) : this() { this.Status = status; this.ServerProtocolVersion = serverProtocolVersion; }
public TFetchResultsResp(TStatus status) : this() { this.Status = status; }
public TExecuteStatementResp(TStatus status) : this() { this.Status = status; }
public TGetLogResp(TStatus status, string log) : this() { this.Status = status; this.Log = log; }
public TGetResultSetMetadataResp(TStatus status) : this() { this.Status = status; }
public TCancelOperationResp(TStatus status) : this() { this.Status = status; }
public TGetCatalogsResp(TStatus status) : this() { this.Status = status; }
public void Read(TProtocol iprot) { bool isset_status = false; bool isset_serverProtocolVersion = 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.I32) { ServerProtocolVersion = (TProtocolVersion)iprot.ReadI32(); isset_serverProtocolVersion = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { SessionHandle = new TSessionHandle(); SessionHandle.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Map) { { Configuration = new Dictionary <string, string>(); TMap _map67 = iprot.ReadMapBegin(); for (int _i68 = 0; _i68 < _map67.Count; ++_i68) { string _key69; string _val70; _key69 = iprot.ReadString(); _val70 = iprot.ReadString(); Configuration[_key69] = _val70; } iprot.ReadMapEnd(); } } 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); } if (!isset_serverProtocolVersion) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TCloseSessionResp(TStatus status) : this() { this.Status = status; }
public TCloseOperationResp(TStatus status) : this() { this.Status = status; }
public TGetInfoResp(TStatus status, TGetInfoValue infoValue) : this() { this.Status = status; this.InfoValue = infoValue; }
public void Read(TProtocol iprot) { bool 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.Bool) { HasMoreRows = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { Results = new TRowSet(); Results.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 TGetColumnsResp(TStatus status) : this() { this.Status = status; }