Modifier and Type | Class and Description |
---|---|
static interface |
MapDB.DBConfig |
static class |
MapDB.Entries<K,V>
Simple abstraction for the reverse sorting
requirement for batch insertion
|
Constructor and Description |
---|
MapDB() |
Modifier and Type | Method and Description |
---|---|
static <K extends Comparable<K>,V> |
batchCreate(Map<K,V> map,
BTreeMapMaker maker) |
static <K extends Comparable<K>,V> |
batchCreate(MapDB.Entries<K,V> entries,
BTreeMapMaker maker) |
static <K extends Comparable<K>,V> |
batchCreate(NavigableMap<K,V> map,
BTreeMapMaker maker) |
static <any> |
newDbCollection(String loc,
String name)
Creates a db for a given name under
location loc
|
static <any> |
newDefaultDb(String loc,
Enum<?> e)
Creates a DB for some enumeration
|
static <any> |
newDefaultDb(String loc,
String name)
Moderate space saving;
mmap file;
LRU instance cache;
close on shutdown;
write-through;
|
static <any> |
SafeDefaultDb(String loc,
String name) |
public static <any> newDefaultDb(String loc, Enum<?> e)
loc
- e
- public static <any> newDbCollection(String loc, String name)
loc
- name
- public static <any> newDefaultDb(String loc, String name)
loc
- name
- public static <K extends Comparable<K>,V> org.mapdb.BTreeMap<K,V> batchCreate(Map<K,V> map, BTreeMapMaker maker)
public static <K extends Comparable<K>,V> org.mapdb.BTreeMap<K,V> batchCreate(NavigableMap<K,V> map, BTreeMapMaker maker)
public static <K extends Comparable<K>,V> org.mapdb.BTreeMap<K,V> batchCreate(MapDB.Entries<K,V> entries, BTreeMapMaker maker)
Copyright © 2017. All rights reserved.