use of org.apache.hadoop.hbase.backup.util.BackupSet in project hbase by apache.
the class BackupAdminImpl method listBackupSets.
@Override
public List<BackupSet> listBackupSets() throws IOException {
try (final BackupSystemTable table = new BackupSystemTable(conn)) {
List<String> list = table.listBackupSets();
List<BackupSet> bslist = new ArrayList<>();
for (String s : list) {
List<TableName> tables = table.describeBackupSet(s);
if (tables != null) {
bslist.add(new BackupSet(s, tables));
}
}
return bslist;
}
}