| Modifier and Type | Field and Description |
|---|---|
protected Fun.Function1<Class,String> |
SerializerPojo.classLoader |
protected static Fun.Function1<Class,String> |
SerializerPojo.DEFAULT_CLASS_LOADER |
protected Fun.Function1<Object,String> |
SerializerPojo.getNamedObject |
protected Fun.Function1<String,Object> |
SerializerPojo.getNameForObject |
protected Fun.Function1<Void,String> |
SerializerPojo.notifyMissingClassInfo |
protected Fun.Function1 |
DB.HTreeMapMaker.pumpKeyExtractor |
protected Fun.Function1 |
DB.BTreeMapMaker.pumpKeyExtractor |
protected Fun.Function1 |
DB.HTreeMapMaker.pumpValueExtractor |
protected Fun.Function1 |
DB.BTreeMapMaker.pumpValueExtractor |
protected Fun.Function1<Class,String> |
TxMaker.serializerClassLoader |
protected Fun.Function1<V,K> |
HTreeMap.valueCreator |
protected Fun.Function1<?,?> |
DB.HTreeMapMaker.valueCreator |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Fun.Function1<K,Fun.Pair<K,V>> |
Fun.extractKey() |
static <K,V> Fun.Function1<K,Map.Entry<K,V>> |
Fun.extractMapEntryKey() |
static <K,V> Fun.Function1<V,Map.Entry<K,V>> |
Fun.extractMapEntryValue() |
static <K> Fun.Function1<K,K> |
Fun.extractNoTransform()
returns function which always returns the value itself without transformation
|
static <K,V> Fun.Function1<V,Fun.Pair<K,V>> |
Fun.extractValue() |
protected Fun.Function1<Class,String> |
DBMaker.Maker.makeClassLoader() |
| Modifier and Type | Method and Description |
|---|---|
static <E,K,V> long |
Pump.buildTreeMap(Iterator<E> source,
Engine engine,
Fun.Function1<K,E> keyExtractor,
Fun.Function1<V,E> valueExtractor,
boolean ignoreDuplicates,
int nodeSize,
boolean valuesStoredOutsideNodes,
long counterRecid,
BTreeKeySerializer keySerializer,
Serializer<V> valueSerializer,
Executor executor)
Build BTreeMap (or TreeSet) from presorted data.
|
static <E,K,V> long |
Pump.buildTreeMap(Iterator<E> source,
Engine engine,
Fun.Function1<K,E> keyExtractor,
Fun.Function1<V,E> valueExtractor,
boolean ignoreDuplicates,
int nodeSize,
boolean valuesStoredOutsideNodes,
long counterRecid,
BTreeKeySerializer keySerializer,
Serializer<V> valueSerializer,
Executor executor)
Build BTreeMap (or TreeSet) from presorted data.
|
<A> A |
TxMaker.execute(Fun.Function1<A,DB> txBlock)
Executes given block withing single transaction.
|
static <K,V,A> void |
Pump.fillHTreeMap(HTreeMap<K,V> m,
Iterator<A> pumpSource,
Fun.Function1<K,A> pumpKeyExtractor,
Fun.Function1<V,A> pumpValueExtractor,
int pumpPresortBatchSize,
boolean pumpIgnoreDuplicates,
Serializer<A> sortSerializer,
Executor executor) |
static <K,V,A> void |
Pump.fillHTreeMap(HTreeMap<K,V> m,
Iterator<A> pumpSource,
Fun.Function1<K,A> pumpKeyExtractor,
Fun.Function1<V,A> pumpValueExtractor,
int pumpPresortBatchSize,
boolean pumpIgnoreDuplicates,
Serializer<A> sortSerializer,
Executor executor) |
<K,V> HTreeMap<K,V> |
DB.getHashMap(String name,
Fun.Function1<V,K> valueCreator)
Deprecated.
method renamed, use
DB.hashMap(String,Serializer, Serializer, org.mapdb.Fun.Function1) |
<K,V> HTreeMap<K,V> |
DB.hashMap(String name,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
Fun.Function1<V,K> valueCreator)
Opens existing or creates new Hash Tree Map.
|
<K,V> DB.HTreeMapMaker |
DB.HTreeMapMaker.pumpSource(Iterator<K> keysSource,
Fun.Function1<V,K> valueExtractor) |
<K,V> DB.BTreeMapMaker |
DB.BTreeMapMaker.pumpSource(Iterator<K> keysSource,
Fun.Function1<V,K> valueExtractor) |
DB.HTreeMapMaker |
DB.HTreeMapMaker.valueCreator(Fun.Function1<?,?> valueCreator)
If value is not found, HTreeMap can fetch and insert default value.
|
| Constructor and Description |
|---|
DB(Engine engine,
boolean strictDBGet,
boolean deleteFilesAfterClose,
ScheduledExecutorService executor,
boolean lockDisable,
ScheduledExecutorService metricsExecutor,
long metricsLogInterval,
ScheduledExecutorService storeExecutor,
ScheduledExecutorService cacheExecutor,
Fun.Function1<Class,String> classLoader) |
HTreeMap(Engine[] engines,
boolean closeEngine,
long[] counterRecids,
int hashSalt,
long[] segmentRecids,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
long expireTimeStart,
long expire,
long expireAccess,
long expireMaxSize,
long expireStoreSize,
long expireTick,
long[] expireHeads,
long[] expireTails,
Fun.Function1<V,K> valueCreator,
ScheduledExecutorService executor,
long executorPeriod,
boolean closeExecutor,
Lock consistencyLock)
Opens HTreeMap
|
SerializerPojo(Fun.Function1<String,Object> getNameForObject,
Fun.Function1<Object,String> getNamedObject,
Fun.Function1Int<SerializerPojo.ClassInfo> getClassInfo,
Fun.Function0<SerializerPojo.ClassInfo[]> getClassInfos,
Fun.Function1<Void,String> notifyMissingClassInfo,
Fun.Function1<Class,String> classLoader,
Engine engine) |
SerializerPojo(Fun.Function1<String,Object> getNameForObject,
Fun.Function1<Object,String> getNamedObject,
Fun.Function1Int<SerializerPojo.ClassInfo> getClassInfo,
Fun.Function0<SerializerPojo.ClassInfo[]> getClassInfos,
Fun.Function1<Void,String> notifyMissingClassInfo,
Fun.Function1<Class,String> classLoader,
Engine engine) |
SerializerPojo(Fun.Function1<String,Object> getNameForObject,
Fun.Function1<Object,String> getNamedObject,
Fun.Function1Int<SerializerPojo.ClassInfo> getClassInfo,
Fun.Function0<SerializerPojo.ClassInfo[]> getClassInfos,
Fun.Function1<Void,String> notifyMissingClassInfo,
Fun.Function1<Class,String> classLoader,
Engine engine) |
SerializerPojo(Fun.Function1<String,Object> getNameForObject,
Fun.Function1<Object,String> getNamedObject,
Fun.Function1Int<SerializerPojo.ClassInfo> getClassInfo,
Fun.Function0<SerializerPojo.ClassInfo[]> getClassInfos,
Fun.Function1<Void,String> notifyMissingClassInfo,
Fun.Function1<Class,String> classLoader,
Engine engine) |
TxMaker(Engine engine,
boolean strictDBGet,
ScheduledExecutorService executor,
Fun.Function1<Class,String> serializerClassLoader) |
Copyright © 2015. All Rights Reserved.