public TGetColumnsReq deepCopy() { return new TGetColumnsReq(this); }
case SESSION_HANDLE: if (value == null) { unsetSessionHandle(); } else { setSessionHandle((TSessionHandle)value); unsetCatalogName(); } else { setCatalogName((String)value); unsetSchemaName(); } else { setSchemaName((String)value); unsetTableName(); } else { setTableName((String)value); unsetColumnName(); } else { setColumnName((String)value);
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof TGetColumnsReq) return this.equals((TGetColumnsReq)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case SESSION_HANDLE: return getSessionHandle(); case CATALOG_NAME: return getCatalogName(); case SCHEMA_NAME: return getSchemaName(); case TABLE_NAME: return getTableName(); case COLUMN_NAME: return getColumnName(); } throw new IllegalStateException(); }
@Override public OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException { try { TGetColumnsReq req = new TGetColumnsReq(); req.setSessionHandle(sessionHandle.toTSessionHandle()); req.setCatalogName(catalogName); req.setSchemaName(schemaName); req.setTableName(tableName); req.setColumnName(columnName); TGetColumnsResp resp = cliService.GetColumns(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.req = new TGetColumnsReq(); struct.req.read(iprot); struct.setReqIsSet(true); } } }
@Override public OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException { try { TGetColumnsReq req = new TGetColumnsReq(); req.setSessionHandle(sessionHandle.toTSessionHandle()); req.setCatalogName(catalogName); req.setSchemaName(schemaName); req.setTableName(tableName); req.setColumnName(columnName); TGetColumnsResp resp = cliService.GetColumns(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public Object getFieldValue(_Fields field) { switch (field) { case SESSION_HANDLE: return getSessionHandle(); case CATALOG_NAME: return getCatalogName(); case SCHEMA_NAME: return getSchemaName(); case TABLE_NAME: return getTableName(); case COLUMN_NAME: return getColumnName(); } throw new IllegalStateException(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.req = new TGetColumnsReq(); struct.req.read(iprot); struct.setReqIsSet(true); } } }
case SESSION_HANDLE: if (value == null) { unsetSessionHandle(); } else { setSessionHandle((TSessionHandle)value); unsetCatalogName(); } else { setCatalogName((String)value); unsetSchemaName(); } else { setSchemaName((String)value); unsetTableName(); } else { setTableName((String)value); unsetColumnName(); } else { setColumnName((String)value);
@Override public OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException { try { TGetColumnsReq req = new TGetColumnsReq(); req.setSessionHandle(sessionHandle.toTSessionHandle()); req.setCatalogName(catalogName); req.setSchemaName(schemaName); req.setTableName(tableName); req.setColumnName(columnName); TGetColumnsResp resp = cliService.GetColumns(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public Object getFieldValue(_Fields field) { switch (field) { case SESSION_HANDLE: return getSessionHandle(); case CATALOG_NAME: return getCatalogName(); case SCHEMA_NAME: return getSchemaName(); case TABLE_NAME: return getTableName(); case COLUMN_NAME: return getColumnName(); } throw new IllegalStateException(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.req = new TGetColumnsReq(); struct.req.read(iprot); struct.setReqIsSet(true); } } }
public TGetColumnsReq deepCopy() { return new TGetColumnsReq(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof TGetColumnsReq) return this.equals((TGetColumnsReq)that); return false; }
case SESSION_HANDLE: if (value == null) { unsetSessionHandle(); } else { setSessionHandle((TSessionHandle)value); unsetCatalogName(); } else { setCatalogName((String)value); unsetSchemaName(); } else { setSchemaName((String)value); unsetTableName(); } else { setTableName((String)value); unsetColumnName(); } else { setColumnName((String)value);
@Override public OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException { try { TGetColumnsReq req = new TGetColumnsReq(); req.setSessionHandle(sessionHandle.toTSessionHandle()); req.setCatalogName(catalogName); req.setSchemaName(schemaName); req.setTableName(tableName); req.setColumnName(columnName); TGetColumnsResp resp = cliService.GetColumns(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public Object getFieldValue(_Fields field) { switch (field) { case SESSION_HANDLE: return getSessionHandle(); case CATALOG_NAME: return getCatalogName(); case SCHEMA_NAME: return getSchemaName(); case TABLE_NAME: return getTableName(); case COLUMN_NAME: return getColumnName(); } throw new IllegalStateException(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.req = new TGetColumnsReq(); struct.req.read(iprot); struct.setReqIsSet(true); } } }
public TGetColumnsReq deepCopy() { return new TGetColumnsReq(this); }