public static void main ( String [ ] args ) { try { // Parse arguments: homeDir keyCount File homeDir = new File ( args [ 0 ] ) ; int initialCapacity = Integer . parseInt ( args [ 1 ] ) ; // Create an instance of Krati DataStore KratiDataStore store = new KratiDataStore ( homeDir , initialCapacity ) ; // Populate data store store . populate ( ) ; // Perform some random reads from data store. store . doRandomReads ( 10 ) ; // Close data store store . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
java - Xmx4G krati . examples . KratiDataStore homeDir initialCapacity