@InterfaceAudience.Private public class HFileArchiveTableMonitor extends Object
It is internally synchronized to ensure consistent view of the table state.
构造器和说明 |
---|
HFileArchiveTableMonitor() |
限定符和类型 | 方法和说明 |
---|---|
void |
addTable(String table)
Add the named table to be those being archived.
|
void |
clearArchive() |
void |
removeTable(String table) |
void |
setArchiveTables(List<String> tables)
Set the tables to be archived.
|
boolean |
shouldArchiveTable(String tableName)
Determine if the given table should or should not allow its hfiles to be deleted in the archive
|
public void setArchiveTables(List<String> tables)
Note: All previous tables will be removed in favor of these tables.
tables
- add each of the tables to be archived.public void addTable(String table)
table
- name of the table to be registeredpublic void removeTable(String table)
public void clearArchive()
public boolean shouldArchiveTable(String tableName)
tableName
- name of the table to checkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.