Refine search
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllResources_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList<String>(_list29.size); String _elem30; for (int _i31 = 0; _i31 < _list29.size; ++_i31) { _elem30 = iprot.readString(); struct.success.add(_elem30); } } struct.setSuccessIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, resourcePoolGetAll_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter39 : struct.success) { oprot.writeString(_iter39); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.fieldSchemas != null) { oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC); oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fieldSchemas.size())); for (FieldSchema _iter307 : struct.fieldSchemas) oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); for (Map.Entry<String, String> _iter308 : struct.properties.entrySet())
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowResult struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.row = iprot.readBinary(); struct.setRowIsSet(true); if (incoming.get(1)) { org.apache.thrift.protocol.TMap _map19 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new java.util.HashMap<java.nio.ByteBuffer,TCell>(2*_map19.size); @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key20; if (incoming.get(2)) { org.apache.thrift.protocol.TList _list23 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.sortedColumns = new java.util.ArrayList<TColumn>(_list23.size); @org.apache.thrift.annotation.Nullable TColumn _elem24;
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if(this.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(this.name); oprot.writeFieldEnd(); oprot.writeFieldBegin(MAPPINGS_FIELD_DESC); oprot.writeMapBegin(new TMap(TType.I64, TType.MAP, this.mappings.size())); for(Map.Entry<Long, Map<String, Integer>> _iter14: this.mappings.entrySet()) { oprot.writeI64(_iter14.getKey()); oprot.writeMapBegin(new TMap(TType.STRING, TType.I32, _iter14.getValue() .size())); for(Map.Entry<String, Integer> _iter15: _iter14.getValue().entrySet()) { oprot.writeFieldBegin(INT_LIST_FIELD_DESC); oprot.writeListBegin(new TList(TType.I16, this.intList.size())); for(short _iter16: this.intList) { oprot.writeI16(_iter16);
case INT_VALUE: Integer intValue = (Integer)value_; oprot.writeI32(intValue); return; case LONG_VALUE: Long longValue = (Long)value_; oprot.writeI64(longValue); return; case STRING_VALUE: String stringValue = (String)value_; oprot.writeString(stringValue); return; case DOUBLE_VALUE: List<String> lString = (List<String>)value_; oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, lString.size())); for (String _iter16 : lString) Map<String,String> unionMStringString = (Map<String,String>)value_; oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, unionMStringString.size())); for (Map.Entry<String, String> _iter17 : unionMStringString.entrySet())
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.values = new ArrayList<ClientCapability>(_list885.size); ClientCapability _elem886; for (int _i887 = 0; _i887 < _list885.size; ++_i887) { _elem886 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); struct.values.add(_elem886); } } struct.setValuesIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList<Long>(_list869.size); long _elem870; for (int _i871 = 0; _i871 < _list869.size; ++_i871) { _elem870 = iprot.readI64(); struct.fileIds.add(_elem870); } } struct.setFileIdsIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list543 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.row = new ArrayList<String>(_list543.size); String _elem544; for (int _i545 = 0; _i545 < _list543.size; ++_i545) { _elem544 = iprot.readString(); struct.row.add(_elem544); } } struct.setRowIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, StreamInfo struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.output_fields = new ArrayList<String>(_list21.size); String _elem22; for (int _i23 = 0; _i23 < _list21.size; ++_i23) { _elem22 = iprot.readString(); struct.output_fields.add(_elem22); } } struct.set_output_fields_isSet(true); struct.direct = iprot.readBool(); struct.set_direct_isSet(true); } }
struct.set_supervisor_isSet(true); org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.workers = new ArrayList<WorkerSummary>(_list147.size); WorkerSummary _elem148; org.apache.thrift.protocol.TMap _map150 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.workerMetric = new HashMap<String,MetricInfo>(2*_map150.size); String _key151; for (int _i153 = 0; _i153 < _map150.size; ++_i153) _key151 = iprot.readString(); _val152 = new MetricInfo(); _val152.read(iprot);
@Override public TList readListBegin() throws TException { final int size = readSequenceBegin(); return new TList(UNUSED_TYPE, size); }
public void write(org.apache.thrift.protocol.TProtocol oprot, getAllResources_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter27 : struct.success) { oprot.writeString(_iter27); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.partStats != null) { oprot.writeFieldBegin(PART_STATS_FIELD_DESC); oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, struct.partStats.size())); for (Map.Entry<String, List<ColumnStatisticsObj>> _iter447 : struct.partStats.entrySet()) oprot.writeString(_iter447.getKey()); oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter447.getValue().size())); for (ColumnStatisticsObj _iter448 : _iter447.getValue())
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TDelete struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new java.util.ArrayList<TColumn>(_list63.size); @org.apache.thrift.annotation.Nullable TColumn _elem64; if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); if (incoming.get(2)) { struct.deleteType = org.apache.hadoop.hbase.thrift2.generated.TDeleteType.findByValue(iprot.readI32()); struct.setDeleteTypeIsSet(true); if (incoming.get(3)) { org.apache.thrift.protocol.TMap _map66 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.attributes = new java.util.HashMap<java.nio.ByteBuffer,java.nio.ByteBuffer>(2*_map66.size); @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _key67;
case INT_VALUE: Integer intValue = (Integer)value_; oprot.writeI32(intValue); return; case LONG_VALUE: Long longValue = (Long)value_; oprot.writeI64(longValue); return; case STRING_VALUE: String stringValue = (String)value_; oprot.writeString(stringValue); return; case DOUBLE_VALUE: List<String> lString = (List<String>)value_; oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, lString.size())); for (String _iter7 : lString) Map<String,String> unionMStringString = (Map<String,String>)value_; oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, unionMStringString.size())); for (Map.Entry<String, String> _iter8 : unionMStringString.entrySet())
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.foreignKeys = new ArrayList<SQLForeignKey>(_list341.size); SQLForeignKey _elem342; for (int _i343 = 0; _i343 < _list341.size; ++_i343) { _elem342 = new SQLForeignKey(); _elem342.read(iprot); struct.foreignKeys.add(_elem342); } } struct.setForeignKeysIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList<Long>(_list845.size); long _elem846; for (int _i847 = 0; _i847 < _list845.size; ++_i847) { _elem846 = iprot.readI64(); struct.fileIds.add(_elem846); } } struct.setFileIdsIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ListBlobsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList<String>(_list229.size); String _elem230; for (int _i231 = 0; _i231 < _list229.size; ++_i231) { _elem230 = iprot.readString(); struct.keys.add(_elem230); } } struct.set_keys_isSet(true); struct.session = iprot.readString(); struct.set_session_isSet(true); } }
/** * This method always return the same instance of TList to avoid creating new * instances. It is the responsibility of the caller to read the value before * calling this method again. */ @Override public TList readListBegin() throws TException { stackLevel++; tlist = new TList(ORDERED_TYPE, readI32()); if (tlist.size == 0 && lastPrimitiveWasNull()) { return null; } return tlist; }