public boolean existsTable ( String keyspace , String table , boolean showLog ) { this . metadata = this . cluster . getMetadata ( ) ; if ( ! ( this . metadata . getKeyspace ( keyspace ) . getTables ( ) . isEmpty ( ) ) ) { for ( TableMetadata t : this . metadata . getKeyspace ( keyspace ) . getTables ( ) ) { if ( t . getName ( ) . equals ( table ) ) { return true ; } } } return false ; }
Checks if a keyspace contains an especific table .