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(); }