public Deferred < ArrayList < Object > > checkNecessaryTablesExist ( ) { final ArrayList < Deferred < Object > > checks = new ArrayList < Deferred < Object > > ( 2 ) ; checks . add ( client . ensureTableExists ( config . getString ( "tsd.storage.hbase.data_table" ) ) ) ; checks . add ( client . ensureTableExists ( config . getString ( "tsd.storage.hbase.uid_table" ) ) ) ; if ( config . enable_tree_processing ( ) ) { checks . add ( client . ensureTableExists ( config . getString ( "tsd.storage.hbase.tree_table" ) ) ) ; } if ( config . enable_realtime_ts ( ) || config . enable_realtime_uid ( ) || config . enable_tsuid_incrementing ( ) ) { checks . add ( client . ensureTableExists ( config . getString ( "tsd.storage.hbase.meta_table" ) ) ) ; } return Deferred . group ( checks ) ; }
Verifies that the data and UID tables exist in HBase and optionally the tree and meta data tables if the user has enabled meta tracking or tree building