use of org.apache.hadoop.hbase.backup.BackupInfo in project hbase by apache.
the class BackupSystemTable method getBackupHistoryForTable.
/**
* Get history for a table
* @param name table name
* @return history for a table
* @throws IOException
*/
public List<BackupInfo> getBackupHistoryForTable(TableName name) throws IOException {
List<BackupInfo> history = getBackupHistory();
List<BackupInfo> tableHistory = new ArrayList<BackupInfo>();
for (BackupInfo info : history) {
List<TableName> tables = info.getTableNames();
if (tables.contains(name)) {
tableHistory.add(info);
}
}
return tableHistory;
}
Aggregations