public TList readListBegin() throws TException { TList list = new TList(readByte(), readI32()); checkContainerReadLength(list.size); return list; }
public TList readListBegin() throws TException { TList list = new TList(readByte(), readI32()); checkContainerReadLength(list.size); return list; }
/** * Read a list header off the wire. If the list size is 0-14, the size will * be packed into the element type header. If it's a longer list, the 4 MSB * of the element type header will be 0xF, and a varint will follow with the * true size. */ public TList readListBegin() throws TException { byte size_and_type = readByte(); int size = (size_and_type >> 4) & 0x0f; if (size == 15) { size = readVarint32(); } checkContainerReadLength(size); byte type = getTType(size_and_type); return new TList(type, size); }
/** * Read a list header off the wire. If the list size is 0-14, the size will * be packed into the element type header. If it's a longer list, the 4 MSB * of the element type header will be 0xF, and a varint will follow with the * true size. */ public TList readListBegin() throws TException { byte size_and_type = readByte(); int size = (size_and_type >> 4) & 0x0f; if (size == 15) { size = readVarint32(); } checkContainerReadLength(size); byte type = getTType(size_and_type); return new TList(type, size); }
@Override public TList readListBegin() throws TException { readJSONArrayStart(); byte elemType = getTypeIDForTypeName(readJSONString(false).get()); int size = (int)readJSONInteger(); return new TList(elemType, size); }
@Override public TList readListBegin() throws TException { readJSONArrayStart(); byte elemType = getTypeIDForTypeName(readJSONString(false).get()); int size = (int)readJSONInteger(); return new TList(elemType, size); }
@Override public void write(uploadQPSStat_args bean, TProtocol oprot) throws TException { validate(bean); oprot.writeStructBegin(new com.isuwang.org.apache.thrift.protocol.TStruct("uploadQPSStat_args")); oprot.writeFieldBegin(new com.isuwang.org.apache.thrift.protocol.TField("qpsStats", com.isuwang.org.apache.thrift.protocol.TType.LIST, (short) 1)); java.util.List<com.isuwang.dapeng.monitor.api.domain.QPSStat> elem0 = bean.getQpsStats(); oprot.writeListBegin(new com.isuwang.org.apache.thrift.protocol.TList(com.isuwang.org.apache.thrift.protocol.TType.STRUCT, elem0.size())); for (com.isuwang.dapeng.monitor.api.domain.QPSStat elem1 : elem0) { new QPSStatSerializer().write(elem1, oprot); } oprot.writeListEnd(); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(uploadDataSourceStat_args bean, TProtocol oprot) throws TException { validate(bean); oprot.writeStructBegin(new com.isuwang.org.apache.thrift.protocol.TStruct("uploadDataSourceStat_args")); oprot.writeFieldBegin(new com.isuwang.org.apache.thrift.protocol.TField("dataSourceStat", com.isuwang.org.apache.thrift.protocol.TType.LIST, (short) 1)); java.util.List<com.isuwang.dapeng.monitor.api.domain.DataSourceStat> elem0 = bean.getDataSourceStat(); oprot.writeListBegin(new com.isuwang.org.apache.thrift.protocol.TList(com.isuwang.org.apache.thrift.protocol.TType.STRUCT, elem0.size())); for (com.isuwang.dapeng.monitor.api.domain.DataSourceStat elem1 : elem0) { new DataSourceStatSerializer().write(elem1, oprot); } oprot.writeListEnd(); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(uploadPlatformProcessData_args bean, TProtocol oprot) throws TException { validate(bean); oprot.writeStructBegin(new com.isuwang.org.apache.thrift.protocol.TStruct("uploadPlatformProcessData_args")); oprot.writeFieldBegin(new com.isuwang.org.apache.thrift.protocol.TField("platformProcessDatas", com.isuwang.org.apache.thrift.protocol.TType.LIST, (short) 1)); java.util.List<com.isuwang.dapeng.monitor.api.domain.PlatformProcessData> elem0 = bean.getPlatformProcessDatas(); oprot.writeListBegin(new com.isuwang.org.apache.thrift.protocol.TList(com.isuwang.org.apache.thrift.protocol.TType.STRUCT, elem0.size())); for (com.isuwang.dapeng.monitor.api.domain.PlatformProcessData elem1 : elem0) { new PlatformProcessDataSerializer().write(elem1, oprot); } oprot.writeListEnd(); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }