| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K key)
Adds the key to this set.
|
boolean |
add(K key,
LocalDateTime expireAt)
Adds the key with expire at to this set.
|
boolean |
add(K key,
long expireAfter,
TimeUnit timeUnit)
Adds the key with expire after to this set.
|
boolean |
add(List<? extends K> list)
Adds the keys to this set.
|
Set<K> |
asJava()
Returns the java set of this set.
|
void |
clear()
Clears this set.
|
swaydb.data.accelerate.Level0Meter |
commit(swaydb.Prepare<K,scala.runtime.Nothing$>... prepares)
Starts the commit function for this set.
|
boolean |
contains(K key)
Checks if a set contains key.
|
boolean |
containsAll(Collection<K> collection)
Checks if a set contains key collection.
|
LocalDateTime |
expiration(K key)
Returns the expiration date for key in this set.
|
boolean |
expire(K key,
LocalDateTime expireAt)
Setups the expiration at for key to this set.
|
boolean |
expire(K key,
long after,
TimeUnit timeUnit)
Setups the expiration after for key to this set.
|
boolean |
isEmpty()
Checks if a set is empty.
|
Iterator<K> |
iterator()
Returns the iterator of elements in this set.
|
swaydb.data.accelerate.Level0Meter |
level0Meter()
Returns the level of meter for zerro level.
|
Optional<swaydb.data.compaction.LevelMeter> |
levelMeter(int levelNumber)
Returns the level of meter for level.
|
boolean |
mightContain(K key)
Checks if a set might contain key.
|
boolean |
nonEmpty()
Checks if a set is not empty.
|
boolean |
remove(K key)
Removes the key of this set.
|
void |
remove(K from,
K to)
Removes the keys of this set.
|
void |
remove(Set<K> keys)
Removes the keys of this set.
|
boolean |
retainAll(Collection<K> collection)
Retains the keys to this set.
|
int |
size()
Returns the size of elements in this set.
|
long |
sizeOfSegments()
Returns the size for segments for this set.
|
Duration |
timeLeft(K key)
Returns the time left for key in this set.
|
Object[] |
toArray()
Returns the array of elements in this set.
|
<T> T[] |
toArray(T[] a)
Returns the typed array of elements in this set.
|
boolean contains(K key)
key - the keytrue if a set contains key, false otherwiseboolean mightContain(K key)
key - the keytrue if a set might contain key, false otherwiseIterator<K> iterator()
Object[] toArray()
<T> T[] toArray(T[] a)
T - the type of the arraya - the typed objectboolean add(K key)
key - the keytrue if a set contained key, false otherwiseboolean add(K key, long expireAfter, TimeUnit timeUnit)
key - the keyexpireAfter - the expireAftertimeUnit - the timeUnittrue if a set contained key, false otherwiseboolean add(K key, LocalDateTime expireAt)
key - the keyexpireAt - the expireAttrue if a set contained key, false otherwiseboolean expire(K key, long after, TimeUnit timeUnit)
key - the keyafter - the aftertimeUnit - the timeUnitboolean expire(K key, LocalDateTime expireAt)
key - the keyexpireAt - the expireAtboolean containsAll(Collection<K> collection)
collection - the collectiontrue if a set contains key, false otherwiseboolean add(List<? extends K> list)
list - the listtrue if a set contained keys, false otherwiseboolean retainAll(Collection<K> collection)
collection - the collectiontrue if a set contained keys, false otherwisevoid remove(K from, K to)
from - the fromto - the toint size()
boolean isEmpty()
true if a set is empty, false otherwiseboolean nonEmpty()
true if a set is not empty, false otherwiseLocalDateTime expiration(K key)
key - the keyDuration timeLeft(K key)
key - the keylong sizeOfSegments()
swaydb.data.accelerate.Level0Meter level0Meter()
Optional<swaydb.data.compaction.LevelMeter> levelMeter(int levelNumber)
levelNumber - the level numbervoid clear()
boolean remove(K key)
key - the keytrue if old key was present, false otherwiseswaydb.data.accelerate.Level0Meter commit(swaydb.Prepare<K,scala.runtime.Nothing$>... prepares)
prepares - the preparesCopyright © 2019. All rights reserved.