|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.master.handler.TableEventHandler
org.apache.hadoop.hbase.master.handler.DeleteTableHandler
org.apache.hadoop.hbase.master.handler.TruncateTableHandler
@InterfaceAudience.Private public class TruncateTableHandler
Truncate the table by removing META and the HDFS files and recreating it. If the 'preserveSplits' option is set to true, the region splits are preserved on recreate. If the operation fails in the middle it may require hbck to fix the system state.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.executor.EventHandler |
---|
EventHandler.EventHandlerListener |
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.master.handler.TableEventHandler |
---|
masterServices, tableLock, tableName |
Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler |
---|
eventType, seqids, server, waitingTimeForEvents |
Constructor Summary | |
---|---|
TruncateTableHandler(TableName tableName,
Server server,
MasterServices masterServices,
boolean preserveSplits)
|
Method Summary | |
---|---|
protected void |
handleTableOperation(List<HRegionInfo> regions)
|
Methods inherited from class org.apache.hadoop.hbase.master.handler.DeleteTableHandler |
---|
prepareWithTableLock, releaseTableLock, toString |
Methods inherited from class org.apache.hadoop.hbase.master.handler.TableEventHandler |
---|
completed, getTableDescriptor, prepare, process, reOpenAllRegions |
Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler |
---|
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TruncateTableHandler(TableName tableName, Server server, MasterServices masterServices, boolean preserveSplits)
Method Detail |
---|
protected void handleTableOperation(List<HRegionInfo> regions) throws IOException, org.apache.zookeeper.KeeperException
handleTableOperation
in class DeleteTableHandler
IOException
org.apache.zookeeper.KeeperException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |