public static List < String > listAllTables ( ) { int items = 100 ; ListTablesResult ltr = getClient ( ) . listTables ( items ) ; List < String > tables = new LinkedList <> ( ) ; String lastKey ; do { tables . addAll ( ltr . getTableNames ( ) ) ; lastKey = ltr . getLastEvaluatedTableName ( ) ; logger . info ( "Found {} tables. Total found: {}." , ltr . getTableNames ( ) . size ( ) , tables . size ( ) ) ; if ( lastKey == null ) { break ; } ltr = getClient ( ) . listTables ( lastKey , items ) ; } while ( ! ltr . getTableNames ( ) . isEmpty ( ) ) ; return tables ; }
Lists all table names for this account .