Modifier and Type | Field and Description |
---|---|
protected boolean |
counter |
protected long |
expire |
protected long |
expireAccess |
protected long |
expireMaxSize |
protected long |
expireStoreSize |
protected Hasher<?> |
hasher |
protected Serializer<?> |
keySerializer |
protected String |
name |
protected Fun.Function1<?,?> |
valueCreator |
protected Serializer<?> |
valueSerializer |
Constructor and Description |
---|
HTreeMapMaker(String name) |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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 |
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 |
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 |
expireMaxSize(long maxSize)
maximal number of entries in this map.
|
DB.HTreeMapMaker |
expireStoreSize(double maxStoreSize) |
DB.HTreeMapMaker |
hasher(Hasher<?> hasher) |
DB.HTreeMapMaker |
keySerializer(Serializer<?> keySerializer)
keySerializer used to convert keys into/from binary form.
|
<K,V> HTreeMap<K,V> |
make() |
<K,V> HTreeMap<K,V> |
makeOrGet() |
DB.HTreeMapMaker |
valueCreator(Fun.Function1<?,?> valueCreator)
If value is not found, HTreeMap can fetch and insert default value.
|
DB.HTreeMapMaker |
valueSerializer(Serializer<?> valueSerializer)
valueSerializer used to convert values into/from binary form.
|
protected final String name
protected boolean counter
protected Serializer<?> keySerializer
protected Serializer<?> valueSerializer
protected long expireMaxSize
protected long expire
protected long expireAccess
protected long expireStoreSize
protected Hasher<?> hasher
protected Fun.Function1<?,?> valueCreator
public HTreeMapMaker(String name)
public DB.HTreeMapMaker counterEnable()
public DB.HTreeMapMaker keySerializer(Serializer<?> keySerializer)
public DB.HTreeMapMaker valueSerializer(Serializer<?> valueSerializer)
public DB.HTreeMapMaker expireMaxSize(long maxSize)
public DB.HTreeMapMaker expireAfterWrite(long interval, TimeUnit timeUnit)
public DB.HTreeMapMaker expireAfterWrite(long interval)
public DB.HTreeMapMaker expireAfterAccess(long interval, TimeUnit timeUnit)
public DB.HTreeMapMaker expireAfterAccess(long interval)
public DB.HTreeMapMaker expireStoreSize(double maxStoreSize)
public DB.HTreeMapMaker valueCreator(Fun.Function1<?,?> valueCreator)
public DB.HTreeMapMaker hasher(Hasher<?> hasher)
public <K,V> HTreeMap<K,V> make()
public <K,V> HTreeMap<K,V> makeOrGet()
Copyright © 2015. All rights reserved.