public ArrayList<BackupImage> getRestoreDependentList(boolean reverse) {
    TreeMap<Long, BackupImage> restoreImages = new TreeMap<>();
    restoreImages.put(backupImage.startTs, backupImage);
    for (BackupImage image : backupImage.getAncestors()) {
      restoreImages.put(Long.valueOf(image.startTs), image);
    }
    return new ArrayList<>(
      reverse ? restoreImages.descendingMap().values() : restoreImages.values());
  }
Get the image list of this backup for restore in time order.
@param reverse If true, then output in reverse order, otherwise in time order from old to new
@return the backup image list for restore in time order
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java