@ Override public final void truncate ( ClusterName targetCluster , TableName tableName ) throws UnsupportedException , ExecutionException { try { connectionHandler . startJob ( targetCluster . getName ( ) ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Tuncating table [" + tableName . getName ( ) + "] in cluster [" + targetCluster . getName ( ) + "]" ) ; } truncate ( tableName , connectionHandler . getConnection ( targetCluster . getName ( ) ) ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "The table [" + tableName . getName ( ) + "] has been successfully truncated in cluster [" + targetCluster . getName ( ) + "]" ) ; } } finally { connectionHandler . endJob ( targetCluster . getName ( ) ) ; } }
This method deletes all the rows of a table .