protected RocksDB openDatabase ( String location , Options options ) throws IOException , RocksDBException { File dir = new File ( location ) ; dir . mkdirs ( ) ; return RocksDB . open ( options , location ) ; }
Creates database if it doesn t exist .