예제 #1
0
 public void read(org.apache.thrift.protocol.TProtocol iprot, DecimalColumnStatsData struct)
     throws org.apache.thrift.TException {
   org.apache.thrift.protocol.TField schemeField;
   iprot.readStructBegin();
   while (true) {
     schemeField = iprot.readFieldBegin();
     if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
       break;
     }
     switch (schemeField.id) {
       case 1: // LOW_VALUE
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.lowValue = new Decimal();
           struct.lowValue.read(iprot);
           struct.setLowValueIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 2: // HIGH_VALUE
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.highValue = new Decimal();
           struct.highValue.read(iprot);
           struct.setHighValueIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 3: // NUM_NULLS
         if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
           struct.numNulls = iprot.readI64();
           struct.setNumNullsIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 4: // NUM_DVS
         if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
           struct.numDVs = iprot.readI64();
           struct.setNumDVsIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       default:
         org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
     }
     iprot.readFieldEnd();
   }
   iprot.readStructEnd();
   struct.validate();
 }
예제 #2
0
 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, DecimalColumnStatsData struct)
     throws org.apache.thrift.TException {
   TTupleProtocol iprot = (TTupleProtocol) prot;
   struct.lowValue = new Decimal();
   struct.lowValue.read(iprot);
   struct.setLowValueIsSet(true);
   struct.highValue = new Decimal();
   struct.highValue.read(iprot);
   struct.setHighValueIsSet(true);
   struct.numNulls = iprot.readI64();
   struct.setNumNullsIsSet(true);
   struct.numDVs = iprot.readI64();
   struct.setNumDVsIsSet(true);
 }