|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mapdb.DB.HTreeSetMaker
public class DB.HTreeSetMaker
| Field Summary | |
|---|---|
protected boolean |
counter
|
protected long |
expire
|
protected long |
expireAccess
|
protected long |
expireMaxSize
|
protected long |
expireStoreSize
|
protected Hasher<?> |
hasher
|
protected String |
name
|
protected Serializer<?> |
serializer
|
| Constructor Summary | |
|---|---|
DB.HTreeSetMaker(String name)
|
|
| Method Summary | ||
|---|---|---|
DB.HTreeSetMaker |
counterEnable()
by default collection does not have counter, without counter updates are faster, but entire collection needs to be traversed to count items. |
|
DB.HTreeSetMaker |
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.HTreeSetMaker |
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.HTreeSetMaker |
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.HTreeSetMaker |
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.HTreeSetMaker |
expireMaxSize(long maxSize)
maximal number of entries in this map. |
|
DB.HTreeSetMaker |
expireStoreSize(double maxStoreSize)
maximal size of store in GB, if store is larger entries will start expiring |
|
DB.HTreeSetMaker |
hasher(Hasher<?> hasher)
|
|
|
make()
|
|
|
makeOrGet()
|
|
DB.HTreeSetMaker |
serializer(Serializer<?> serializer)
keySerializer used to convert keys into/from binary form. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String name
protected boolean counter
protected Serializer<?> serializer
protected long expireMaxSize
protected long expireStoreSize
protected long expire
protected long expireAccess
protected Hasher<?> hasher
| Constructor Detail |
|---|
public DB.HTreeSetMaker(String name)
| Method Detail |
|---|
public DB.HTreeSetMaker counterEnable()
public DB.HTreeSetMaker serializer(Serializer<?> serializer)
public DB.HTreeSetMaker expireMaxSize(long maxSize)
public DB.HTreeSetMaker expireStoreSize(double maxStoreSize)
public DB.HTreeSetMaker expireAfterWrite(long interval,
TimeUnit timeUnit)
public DB.HTreeSetMaker expireAfterWrite(long interval)
public DB.HTreeSetMaker expireAfterAccess(long interval,
TimeUnit timeUnit)
public DB.HTreeSetMaker expireAfterAccess(long interval)
public DB.HTreeSetMaker hasher(Hasher<?> hasher)
public <K> Set<K> make()
public <K> Set<K> makeOrGet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||