public void Read(TProtocol iprot) { bool isset_sessionHandle = false; bool isset_infoType = 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) { SessionHandle = new TSessionHandle(); SessionHandle.Read(iprot); isset_sessionHandle = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { InfoType = (TGetInfoType)iprot.ReadI32(); isset_infoType = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_sessionHandle) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_infoType) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TCloseSessionReq(TSessionHandle sessionHandle) : this() { this.SessionHandle = sessionHandle; }
public TGetTypeInfoReq(TSessionHandle sessionHandle) : this() { this.SessionHandle = sessionHandle; }
public TGetSchemasReq(TSessionHandle sessionHandle) : this() { this.SessionHandle = sessionHandle; }
public void Read(TProtocol iprot) { bool isset_sessionHandle = 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) { SessionHandle = new TSessionHandle(); SessionHandle.Read(iprot); isset_sessionHandle = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { CatalogName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { SchemaName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { TableName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { ColumnName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_sessionHandle) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TGetColumnsReq(TSessionHandle sessionHandle) : this() { this.SessionHandle = sessionHandle; }
public TGetTableTypesReq(TSessionHandle sessionHandle) : this() { this.SessionHandle = sessionHandle; }
public void Read(TProtocol iprot) { bool isset_sessionHandle = 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) { SessionHandle = new TSessionHandle(); SessionHandle.Read(iprot); isset_sessionHandle = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { CatalogName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { SchemaName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { TableName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.List) { { TableTypes = new List <string>(); TList _list77 = iprot.ReadListBegin(); for (int _i78 = 0; _i78 < _list77.Count; ++_i78) { string _elem79 = null; _elem79 = iprot.ReadString(); TableTypes.Add(_elem79); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_sessionHandle) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public void Read(TProtocol iprot) { bool isset_sessionHandle = false; bool isset_statement = 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) { SessionHandle = new TSessionHandle(); SessionHandle.Read(iprot); isset_sessionHandle = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Statement = iprot.ReadString(); isset_statement = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Map) { { ConfOverlay = new Dictionary <string, string>(); TMap _map72 = iprot.ReadMapBegin(); for (int _i73 = 0; _i73 < _map72.Count; ++_i73) { string _key74; string _val75; _key74 = iprot.ReadString(); _val75 = iprot.ReadString(); ConfOverlay[_key74] = _val75; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_sessionHandle) { throw new TProtocolException(TProtocolException.INVALID_DATA); } if (!isset_statement) { throw new TProtocolException(TProtocolException.INVALID_DATA); } }
public TExecuteStatementReq(TSessionHandle sessionHandle, string statement) : this() { this.SessionHandle = sessionHandle; this.Statement = statement; }
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 TGetFunctionsReq(TSessionHandle sessionHandle, string functionName) : this() { this.SessionHandle = sessionHandle; this.FunctionName = functionName; }
public TGetInfoReq(TSessionHandle sessionHandle, TGetInfoType infoType) : this() { this.SessionHandle = sessionHandle; this.InfoType = infoType; }
public TGetCatalogsReq(TSessionHandle sessionHandle) : this() { this.SessionHandle = sessionHandle; }