Package org.infinispan.multimap.impl
Class SortedSetBucket<V>
java.lang.Object
org.infinispan.multimap.impl.SortedSetBucket<V>
- All Implemented Interfaces:
SortableBucket<V>
Bucket used to store Sorted Set data type.
- Since:
- 15.0
- Author:
- Katia Aresti
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classNested 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) Returns a copy of the entries;List<ScoredValue<V>> Returns a copy of the entries;incrScore(double incr, V member, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) inter(Collection<ScoredValue<V>> inputValues, double weight, SortedSetBucket.AggregateFunction function) pop(boolean min, long count) List<ScoredValue<V>> randomMembers(int count) longlong<V> longremoveAll(Collection<V> values) longvoidreplace(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) union(Collection<ScoredValue<V>> inputValues, double weight, SortedSetBucket.AggregateFunction function) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.multimap.impl.SortableBucket
sort
-
Constructor Details
-
SortedSetBucket
public SortedSetBucket()
-
-
Method Details
-
union
public Collection<ScoredValue<V>> union(Collection<ScoredValue<V>> inputValues, double weight, SortedSetBucket.AggregateFunction function) -
inter
public Collection<ScoredValue<V>> inter(Collection<ScoredValue<V>> inputValues, double weight, SortedSetBucket.AggregateFunction function) -
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
-
getScoredEntriesAsValuesSet
-
addMany
public SortedSetBucket.AddOrUpdatesCounters addMany(Collection<ScoredValue<V>> scoredValues, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) -
incrScore
-
removeAll
-
removeAll
-
removeAll
-
removeAll
-
subsetByIndex
-
subset
-
subset
-
toTreeSet
-
size
public long size() -
stream
- Specified by:
streamin interfaceSortableBucket<V>
-
sort
- Specified by:
sortin interfaceSortableBucket<V>
-