@Override public Boolean connect(HConnection connection) throws IOException { return connection.isTableEnabled(tableName); } });
@Override public Boolean connect(HConnection connection) throws IOException { return connection.isTableEnabled(tableName); } });
/** * @param tableName name of table to check * @return true if table is on-line * @throws IOException if a remote or network exception occurs */ public boolean isTableEnabled(byte[] tableName) throws IOException { if (!HTableDescriptor.isMetaTable(tableName)) { HTableDescriptor.isLegalTableName(tableName); } return connection.isTableEnabled(tableName); }