private boolean isNamespace ( String database ) { Collection < String > tables = getMetaStoreUtil ( ) . getAllTables ( database ) ; for ( String name : tables ) { if ( isReadable ( database , name ) ) { return true ; } } return false ; }
Returns true if there is at least one table in the give database that can be read .