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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classstatic final recordNested classes/interfaces inherited from interface org.infinispan.multimap.impl.BaseSetBucket
BaseSetBucket.SetUtilNested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucket
SortableBucket.SortOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMany(Collection<ScoredValue<V>> scoredValues, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) booleanList<ScoredValue<V>> Set<ScoredValue<V>> getAsSet()Returns a copy of the entries;List<ScoredValue<V>> Returns a copy of the entries;inthashCode()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) longsize()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, waitMethods inherited from interface org.infinispan.multimap.impl.BaseSetBucket
inter, unionMethods inherited from interface org.infinispan.multimap.impl.SortableBucket
sort
-
Constructor Details
-
SortedSetBucket
public SortedSetBucket()
-
-
Method Details
-
getAsSet
- Specified by:
getAsSetin interfaceBaseSetBucket<V>
-
getAsList
- Specified by:
getAsListin interfaceBaseSetBucket<V>
-
getScore
- Specified by:
getScorein 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:
streamin interfaceSortableBucket<V>
-
sort
- Specified by:
sortin interfaceSortableBucket<V>
-
equals
-
hashCode
-