public void doRandomReads ( int readCnt ) { Random rand = new Random ( ) ; for ( int i = 0 ; i < readCnt ; i ++ ) { int keyId = rand . nextInt ( _initialCapacity ) ; String str = "key." + keyId ; byte [ ] key = str . getBytes ( ) ; byte [ ] value = _store . get ( key ) ; System . out . printf ( "Key=%s\tValue=%s%n" , str , new String ( value ) ) ; } }
Perform a number of random reads from the underlying data store .