forked from jankotek/mapdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDB.java
More file actions
52 lines (38 loc) · 954 Bytes
/
Copy pathDB.java
File metadata and controls
52 lines (38 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.mapdb.db;
import org.jetbrains.annotations.NotNull;
import org.mapdb.store.HeapBufStore;
import org.mapdb.store.Store;
import java.io.File;
public class DB {
private final Store store;
public DB(Store store) {
this.store = store;
}
public Store getStore(){
return store;
}
public void close() {
}
public static class Maker {
private final Store store;
private Maker(Store store) {
this.store = store;
}
@NotNull
public static Maker appendFile(@NotNull File f) {
return null;
}
@NotNull
public DB make() {
return new DB(store);
}
@NotNull
public static Maker heapSer() {
return new Maker(new HeapBufStore());
}
@NotNull
public static Maker memoryDB() {
return new Maker(new HeapBufStore());
}
}
}