| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closeEngine |
protected boolean |
counter |
protected ScheduledExecutorService |
executor |
protected long |
executorPeriod |
protected long |
expire |
protected long |
expireAccess |
protected long |
expireMaxSize |
protected long |
expireStoreSize |
protected long |
expireTick |
protected String |
name |
protected boolean |
pumpIgnoreDuplicates |
protected int |
pumpPresortBatchSize |
protected Iterator |
pumpSource |
protected Serializer<?> |
serializer |
| Constructor and Description |
|---|
DB.HTreeSetMaker(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected DB.HTreeSetMaker |
closeEngine() |
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 |
executorEnable() |
DB.HTreeSetMaker |
executorEnable(ScheduledExecutorService executor) |
DB.HTreeSetMaker |
executorPeriod(long period) |
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 |
expireTick(long expireTick)
Calling expiration cleanup too often reduces performance.
|
<K> Set<K> |
make() |
<K> Set<K> |
makeOrGet() |
DB.HTreeSetMaker |
pumpIgnoreDuplicates()
If source iteretor contains an duplicate key, exception is thrown.
|
DB.HTreeSetMaker |
pumpPresort(int batchSize) |
DB.HTreeSetMaker |
pumpSource(Iterator<?> source) |
DB.HTreeSetMaker |
serializer(Serializer<?> serializer)
keySerializer used to convert keys into/from binary form.
|
protected final String name
protected boolean counter
protected Serializer<?> serializer
protected long expireMaxSize
protected long expireStoreSize
protected long expire
protected long expireAccess
protected long expireTick
protected Iterator pumpSource
protected int pumpPresortBatchSize
protected boolean pumpIgnoreDuplicates
protected boolean closeEngine
protected ScheduledExecutorService executor
protected long executorPeriod
public DB.HTreeSetMaker(String name)
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 expireTick(long expireTick)
expireTick - minimal time between expiration cleanup in millisecondspublic DB.HTreeSetMaker pumpSource(Iterator<?> source)
public DB.HTreeSetMaker pumpIgnoreDuplicates()
public DB.HTreeSetMaker pumpPresort(int batchSize)
public DB.HTreeSetMaker executorEnable()
public DB.HTreeSetMaker executorEnable(ScheduledExecutorService executor)
public DB.HTreeSetMaker executorPeriod(long period)
protected DB.HTreeSetMaker closeEngine()
public <K> Set<K> make()
public <K> Set<K> makeOrGet()
Copyright © 2015. All Rights Reserved.