@Override
    public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpec struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet incoming = iprot.readBitSet(8);
      if (incoming.get(0)) {
        struct.dbName = iprot.readString();
        struct.setDbNameIsSet(true);
      }
      if (incoming.get(1)) {
        struct.tableName = iprot.readString();
        struct.setTableNameIsSet(true);
      }
      if (incoming.get(2)) {
        struct.rootPath = iprot.readString();
        struct.setRootPathIsSet(true);
      }
      if (incoming.get(3)) {
        struct.sharedSDPartitionSpec = new PartitionSpecWithSharedSD();
        struct.sharedSDPartitionSpec.read(iprot);
        struct.setSharedSDPartitionSpecIsSet(true);
      }
      if (incoming.get(4)) {
        struct.partitionList = new PartitionListComposingSpec();
        struct.partitionList.read(iprot);
        struct.setPartitionListIsSet(true);
      }
      if (incoming.get(5)) {
        struct.catName = iprot.readString();
        struct.setCatNameIsSet(true);
      }
      if (incoming.get(6)) {
        struct.writeId = iprot.readI64();
        struct.setWriteIdIsSet(true);
      }
      if (incoming.get(7)) {
        struct.isStatsCompliant = iprot.readBool();
        struct.setIsStatsCompliantIsSet(true);
      }
    }
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/PartitionSpec.java