Modifier and Type | Method and Description |
---|---|
DB.HTreeMapMaker |
DB.HTreeMapMaker.counterEnable()
by default collection does not have counter, without counter updates are faster, but entire collection needs to be traversed to count items.
|
DB.HTreeMapMaker |
DB.createHashMap(String name)
Returns new builder for HashMap with given name
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.expireAfterAccess(long interval)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.expireAfterAccess(long interval,
TimeUnit timeUnit)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.expireAfterWrite(long interval)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.expireAfterWrite(long interval,
TimeUnit timeUnit)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.expireMaxSize(long maxSize)
maximal number of entries in this map.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.expireStoreSize(double maxStoreSize) |
DB.HTreeMapMaker |
DB.HTreeMapMaker.hasher(Hasher<?> hasher) |
DB.HTreeMapMaker |
DB.HTreeMapMaker.keySerializer(Serializer<?> keySerializer)
keySerializer used to convert keys into/from binary form.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.valueCreator(Fun.Function1<?,?> valueCreator)
If value is not found, HTreeMap can fetch and insert default value.
|
DB.HTreeMapMaker |
DB.HTreeMapMaker.valueSerializer(Serializer<?> valueSerializer)
valueSerializer used to convert values into/from binary form.
|
Modifier and Type | Method and Description |
---|---|
protected <K,V> HTreeMap<K,V> |
DB.createHashMap(DB.HTreeMapMaker m)
Creates new HashMap with more specific arguments
|
Copyright © 2017. All rights reserved.