@Override
  public EventMessage checkValid() {
    if (getTable() == null)
      throw new IllegalStateException("Table name unset.");
    if (getPartitions() == null)
      throw new IllegalStateException("Partition-list unset.");

    try {
      getPartitionObjs().forEach(partition -> {
        if (getWriteId() != partition.getWriteId()) {
          throw new IllegalStateException("Different write id in the same event");
        }
      });
    } catch (Exception e) {
      throw new IllegalStateException("Unable to get the partition objects");
    }

    return super.checkValid();
  }
Getter for list of partitions.
@return List of maps, where each map identifies values for each partition-key, for every altered partition.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/AlterPartitionsMessage.java