public TConsensusGroupId getPredecessorDataPartition(
      TSeriesPartitionSlot seriesPartitionSlot, TTimePartitionSlot timePartitionSlot) {
    if (dataPartitionMap.containsKey(seriesPartitionSlot)) {
      return dataPartitionMap
          .get(seriesPartitionSlot)
          .getPredecessorDataPartition(timePartitionSlot);
    } else {
      return null;
    }
  }
Checks whether the specified DataPartition has a predecessor and returns if it does.

@param seriesPartitionSlot Corresponding SeriesPartitionSlot
@param timePartitionSlot Corresponding TimePartitionSlot
@return The specific DataPartition's predecessor if exists, null otherwise
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/DataPartitionTable.java