363738394041424344
protected String name; protected KahaStore store; protected int MAX_CACHE_SIZE=10; protected KahaStore getStore() throws IOException{ KahaStore store = new KahaStore(name,"rw"); store.initialize(); return store; }
35363738394041
* @param mode * @return the opened/created store * @throws IOException */ public static Store open(String name,String mode) throws IOException{ return new KahaStore(name,mode); }
4546474849505152
* @param name of the database * @return true if successful * @throws IOException */ public static boolean delete(String name) throws IOException{ KahaStore store = new KahaStore(name,"rw"); return store.delete(); }
39404142434445
* @param mode * @return the opened/created store * @throws IOException */ public static Store open(String name, String mode) throws IOException { return new KahaStore(name, mode,new AtomicLong()); }
51525354555657
* @param mode * @return * @throws IOException */ public static Store open(File directory, String mode) throws IOException { return new KahaStore(directory, mode, new AtomicLong()); }
63646566676869
* @param size * @return the opened/created store * @throws IOException */ public static Store open(String name, String mode, AtomicLong size) throws IOException { return new KahaStore(name, mode,size); }
77787980818283
* @param size * @return * @throws IOException */ public static Store open(File directory, String mode, AtomicLong size) throws IOException { return new KahaStore(directory, mode, size); }
8990919293949596
* @param name of the database * @return true if successful * @throws IOException */ public static boolean delete(String name) throws IOException { KahaStore store = new KahaStore(name, "rw"); return store.delete(); }
101102103104105106107108
* @param directory * @return true if successful * @throws IOException */ public static boolean delete(File directory) throws IOException { KahaStore store = new KahaStore(directory, "rw"); return store.delete(); }