public TTableSchema deepCopy() { return new TTableSchema(this); }
public TTableSchema toTTableSchema() { TTableSchema tTableSchema = new TTableSchema(); for (ColumnDescriptor col : columns) { tTableSchema.addToColumns(col.toTColumnDesc()); } return tTableSchema; }
/** * Performs a deep copy on <i>other</i>. */ public TGetResultSetMetadataResp(TGetResultSetMetadataResp other) { if (other.isSetStatus()) { this.status = new TStatus(other.status); } if (other.isSetSchema()) { this.schema = new TTableSchema(other.schema); } }
case 2: // SCHEMA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.schema = new TTableSchema(); struct.schema.read(iprot); struct.setSchemaIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TGetResultSetMetadataResp struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.status = new TStatus(); struct.status.read(iprot); struct.setStatusIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.schema = new TTableSchema(); struct.schema.read(iprot); struct.setSchemaIsSet(true); } } }
public TTableSchema toTTableSchema() { TTableSchema tTableSchema = new TTableSchema(); for (ColumnDescriptor col : columns) { tTableSchema.addToColumns(col.toTColumnDesc()); } return tTableSchema; }