public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor 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: // COLS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list276 = iprot.readListBegin();
                struct.cols = new java.util.ArrayList<FieldSchema>(_list276.size);
                @org.apache.thrift.annotation.Nullable FieldSchema _elem277;
                for (int _i278 = 0; _i278 < _list276.size; ++_i278)
                {
                  _elem277 = new FieldSchema();
                  _elem277.read(iprot);
                  struct.cols.add(_elem277);
                }
                iprot.readListEnd();
              }
              struct.setColsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // LOCATION
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.location = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString());
              struct.setLocationIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // INPUT_FORMAT
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.inputFormat = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString());
              struct.setInputFormatIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // OUTPUT_FORMAT
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.outputFormat = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString());
              struct.setOutputFormatIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // COMPRESSED
            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
              struct.compressed = iprot.readBool();
              struct.setCompressedIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // NUM_BUCKETS
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.numBuckets = iprot.readI32();
              struct.setNumBucketsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // SERDE_INFO
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.serdeInfo = new SerDeInfo();
              struct.serdeInfo.read(iprot);
              struct.setSerdeInfoIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // BUCKET_COLS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list279 = iprot.readListBegin();
                struct.bucketCols = new java.util.ArrayList<java.lang.String>(_list279.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _elem280;
                for (int _i281 = 0; _i281 < _list279.size; ++_i281)
                {
                  _elem280 = iprot.readString();
                  struct.bucketCols.add(_elem280);
                }
                iprot.readListEnd();
              }
              struct.bucketCols = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(struct.bucketCols); struct.setBucketColsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // SORT_COLS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list282 = iprot.readListBegin();
                struct.sortCols = new java.util.ArrayList<Order>(_list282.size);
                @org.apache.thrift.annotation.Nullable Order _elem283;
                for (int _i284 = 0; _i284 < _list282.size; ++_i284)
                {
                  _elem283 = new Order();
                  _elem283.read(iprot);
                  struct.sortCols.add(_elem283);
                }
                iprot.readListEnd();
              }
              struct.setSortColsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 10: // PARAMETERS
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map285 = iprot.readMapBegin();
                struct.parameters = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map285.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _key286;
                @org.apache.thrift.annotation.Nullable java.lang.String _val287;
                for (int _i288 = 0; _i288 < _map285.size; ++_i288)
                {
                  _key286 = iprot.readString();
                  _val287 = iprot.readString();
                  struct.parameters.put(_key286, _val287);
                }
                iprot.readMapEnd();
              }
              struct.parameters = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(struct.parameters); struct.setParametersIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 11: // SKEWED_INFO
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.skewedInfo = new SkewedInfo();
              struct.skewedInfo.read(iprot);
              struct.setSkewedInfoIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 12: // STORED_AS_SUB_DIRECTORIES
            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
              struct.storedAsSubDirectories = iprot.readBool();
              struct.setStoredAsSubDirectoriesIsSet(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();
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java