public AsyncIterator < String > getAllKeys ( String tableName ) { return new ContinuationTokenAsyncIterator <> ( token -> getKeysPaginated ( tableName , token , 1000 ) . thenApplyAsync ( result -> { token . release ( ) ; return new AbstractMap . SimpleEntry <> ( result . getKey ( ) , result . getValue ( ) ) ; } , executor ) , IteratorState . EMPTY . toBytes ( ) ) ; }
Method to retrieve all keys in the table . It returns an asyncIterator which can be used to iterate over the returned keys .