Package org.infinispan.multimap.impl
Class SortedSetBucket<V>
java.lang.Object
org.infinispan.multimap.impl.SortedSetBucket<V>
- All Implemented Interfaces:
BaseSetBucket<V>
,SortableBucket<V>
@ProtoTypeId(5307)
public class SortedSetBucket<V>
extends Object
implements SortableBucket<V>, BaseSetBucket<V>
Bucket used to store Sorted Set data type.
- Since:
- 15.0
- Author:
- Katia Aresti
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
static final record
Nested classes/interfaces inherited from interface org.infinispan.multimap.impl.BaseSetBucket
BaseSetBucket.SetUtil
Nested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucket
SortableBucket.SortOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMany
(Collection<ScoredValue<V>> scoredValues, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) boolean
List
<ScoredValue<V>> Set
<ScoredValue<V>> getAsSet()
Returns a copy of the entries;List
<ScoredValue<V>> Returns a copy of the entries;int
hashCode()
incrScore
(double incr, V member, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) pop
(boolean min, long count) List
<ScoredValue<V>> randomMembers
(int count) removeAll
(Collection<V> values) replace
(Collection<ScoredValue<V>> scoredValues) long
size()
List
<ScoredValue<V>> sort
(SortableBucket.SortOptions sortOptions) stream()
List
<ScoredValue<V>> subset
(Double startScore, boolean includeStart, Double stopScore, boolean includeStop, boolean isRev, Long offset, Long count) List
<ScoredValue<V>> subset
(V startValue, boolean includeStart, V stopValue, boolean includeStop, boolean isRev, Long offset, Long count) List
<ScoredValue<V>> subsetByIndex
(long from, long to, boolean rev) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.multimap.impl.BaseSetBucket
inter, union
Methods inherited from interface org.infinispan.multimap.impl.SortableBucket
sort
-
Constructor Details
-
SortedSetBucket
public SortedSetBucket()
-
-
Method Details
-
getAsSet
- Specified by:
getAsSet
in interfaceBaseSetBucket<V>
-
getAsList
- Specified by:
getAsList
in interfaceBaseSetBucket<V>
-
getScore
- Specified by:
getScore
in interfaceBaseSetBucket<V>
-
randomMembers
-
getScoredEntries
Returns a copy of the entries;- Returns:
- entries copy
-
getScoredEntriesAsList
Returns a copy of the entries;- Returns:
- entries copy
-
pop
-
scores
-
indexOf
-
replace
-
addMany
public SortedSetBucket.SortedSetResult<SortedSetBucket.AddOrUpdatesCounters,V> addMany(Collection<ScoredValue<V>> scoredValues, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) -
incrScore
public SortedSetBucket.SortedSetResult<Double,V> incrScore(double incr, V member, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) -
removeAll
-
removeAll
public SortedSetBucket.SortedSetResult<Long,V> removeAll(V min, boolean includeMin, V max, boolean includeMax) -
removeAll
public SortedSetBucket.SortedSetResult<Long,V> removeAll(Double min, boolean includeMin, Double max, boolean includeMax) -
removeAll
-
subsetByIndex
-
subset
-
subset
-
toTreeSet
-
size
public long size() -
stream
- Specified by:
stream
in interfaceSortableBucket<V>
-
sort
- Specified by:
sort
in interfaceSortableBucket<V>
-
equals
-
hashCode
public int hashCode()
-