Refine search
@Override public void read(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map324 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.properties = new HashMap<String,String>(2*_map324.size); String _key325; String _val326; for (int _i327 = 0; _i327 < _map324.size; ++_i327) { _key325 = iprot.readString(); _val326 = iprot.readString(); struct.properties.put(_key325, _val326); } } struct.setPropertiesIsSet(true); } } }
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())
public void write(org.apache.thrift.protocol.TProtocol oprot, Credentials struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.creds.size())); for (Map.Entry<String, String> _iter198 : struct.creds.entrySet()) { oprot.writeString(_iter198.getKey()); oprot.writeString(_iter198.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@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(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metadata != null) { oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); for (Map.Entry<Long, ByteBuffer> _iter834 : struct.metadata.entrySet()) { oprot.writeI64(_iter834.getKey()); oprot.writeBinary(_iter834.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(IS_SUPPORTED_FIELD_DESC); oprot.writeBool(struct.isSupported); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
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, Credentials struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map200 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.creds = new HashMap<String,String>(2*_map200.size); String _key201; String _val202; for (int _i203 = 0; _i203 < _map200.size; ++_i203) { _key201 = iprot.readString(); _val202 = iprot.readString(); struct.creds.put(_key201, _val202); } } struct.set_creds_isSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map836 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.metadata = new HashMap<Long,ByteBuffer>(2*_map836.size); long _key837; ByteBuffer _val838; for (int _i839 = 0; _i839 < _map836.size; ++_i839) { _key837 = iprot.readI64(); _val838 = iprot.readBinary(); struct.metadata.put(_key837, _val838); } } struct.setMetadataIsSet(true); struct.isSupported = iprot.readBool(); struct.setIsSupportedIsSet(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 void read(org.apache.thrift.protocol.TProtocol prot, ThriftFlumeEvent struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map6 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.headers = new HashMap<String,String>(2*_map6.size); String _key7; String _val8; for (int _i9 = 0; _i9 < _map6.size; ++_i9) { _key7 = iprot.readString(); _val8 = iprot.readString(); struct.headers.put(_key7, _val8); } } struct.setHeadersIsSet(true); struct.body = iprot.readBinary(); struct.setBodyIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, MetricWindow struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map112 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.DOUBLE, iprot.readI32()); struct.metricWindow = new HashMap<Integer,Double>(2*_map112.size); int _key113; double _val114; for (int _i115 = 0; _i115 < _map112.size; ++_i115) { _key113 = iprot.readI32(); _val114 = iprot.readDouble(); struct.metricWindow.put(_key113, _val114); } } struct.set_metricWindow_isSet(true); } }
/** * This method always return the same instance of TMap to avoid creating new * instances. It is the responsibility of the caller to read the value before * calling this method again. */ @Override public TMap readMapBegin() throws TException { stackLevel++; tmap = new TMap(ORDERED_TYPE, ORDERED_TYPE, readI32()); if (tmap.size == 0 && lastPrimitiveWasNull()) { return null; } return tmap; }
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())
public void write(org.apache.thrift.protocol.TProtocol oprot, MetricWindow struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metricWindow != null) { oprot.writeFieldBegin(METRIC_WINDOW_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.DOUBLE, struct.metricWindow.size())); for (Map.Entry<Integer, Double> _iter110 : struct.metricWindow.entrySet()) { oprot.writeI32(_iter110.getKey()); oprot.writeDouble(_iter110.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@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;
public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metadata != null) { oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size())); for (Map.Entry<Long, MetadataPpdResult> _iter816 : struct.metadata.entrySet()) { oprot.writeI64(_iter816.getKey()); _iter816.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(IS_SUPPORTED_FIELD_DESC); oprot.writeBool(struct.isSupported); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
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, TUnionTypeEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map26 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.nameToTypePtr = new HashMap<String,Integer>(2*_map26.size); String _key27; int _val28; for (int _i29 = 0; _i29 < _map26.size; ++_i29) { _key27 = iprot.readString(); _val28 = iprot.readI32(); struct.nameToTypePtr.put(_key27, _val28); } } struct.setNameToTypePtrIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map818 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.metadata = new HashMap<Long,MetadataPpdResult>(2*_map818.size); long _key819; MetadataPpdResult _val820; for (int _i821 = 0; _i821 < _map818.size; ++_i821) { _key819 = iprot.readI64(); _val820 = new MetadataPpdResult(); _val820.read(iprot); struct.metadata.put(_key819, _val820); } } struct.setMetadataIsSet(true); struct.isSupported = iprot.readBool(); struct.setIsSupportedIsSet(true); } }