Exemplo n.º 1
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.I32:
                 self.id = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRUCT:
                 self.ystats = Stats()
                 self.ystats.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.snapshot_filepath = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Exemplo n.º 2
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I32:
         self.id = iprot.readI32()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.ystats = Stats()
         self.ystats.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRING:
         self.snapshot_filepath = iprot.readString()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Exemplo n.º 3
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.STRUCT:
         self.func_stat = FuncStat()
         self.func_stat.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.LIST:
         self.callers = []
         (_etype3, _size0) = iprot.readListBegin()
         for _i4 in range(_size0):
           _elem5 = FuncStat()
           _elem5.read(iprot)
           self.callers.append(_elem5)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Exemplo n.º 4
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.LIST:
                 self.func_stats = []
                 (_etype10, _size7) = iprot.readListBegin()
                 for _i11 in range(_size7):
                     _elem12 = Function()
                     _elem12.read(iprot)
                     self.func_stats.append(_elem12)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Exemplo n.º 5
0
 def read(self, iprot):
     if (iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated
             and isinstance(iprot.trans, TTransport.CReadableTransport)
             and self.thrift_spec is not None and fastbinary is not None):
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStruct(self, self.thrift_spec)
Exemplo n.º 6
0
 def read(self, iprot):
   if (iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and
       isinstance(iprot.trans, TTransport.CReadableTransport) and
       self.thrift_spec is not None and
       fastbinary is not None):
     fastbinary.decode_binary(self,
                              iprot.trans,
                              (self.__class__, self.thrift_spec))
     return
   iprot.readStruct(self, self.thrift_spec)
Exemplo n.º 7
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Exemplo n.º 8
0
 def read(self, iprot):
     if (
         iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated
         and isinstance(iprot.trans, TTransport.CReadableTransport)
         and self.thrift_spec is not None
         and fastbinary is not None
     ):
         fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.STRING:
                 self.file = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.line = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.func_name = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.calls_count = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.DOUBLE:
                 self.total_time = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.DOUBLE:
                 self.own_time = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Exemplo n.º 9
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Exemplo n.º 10
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.STRING:
                 self.file = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.line = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.func_name = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.calls_count = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.DOUBLE:
                 self.total_time = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.DOUBLE:
                 self.own_time = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()