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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classstatic final recordNested classes/interfaces inherited from interface org.infinispan.multimap.impl.BaseSetBucketBaseSetBucket.SetUtilNested classes/interfaces inherited from interface org.infinispan.multimap.impl.SortableBucketSortableBucket.SortOptions
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.multimap.impl.BaseSetBucketinter, unionMethods inherited from interface org.infinispan.multimap.impl.SortableBucketsort
- 
Constructor Details- 
SortedSetBucketpublic SortedSetBucket()
 
- 
- 
Method Details- 
getAsSet- Specified by:
- getAsSetin interface- BaseSetBucket<V>
 
- 
getAsList- Specified by:
- getAsListin interface- BaseSetBucket<V>
 
- 
getScore- Specified by:
- getScorein interface- BaseSetBucket<V>
 
- 
randomMembers
- 
getScoredEntriesReturns a copy of the entries;- Returns:
- entries copy
 
- 
getScoredEntriesAsListReturns a copy of the entries;- Returns:
- entries copy
 
- 
pop
- 
scores
- 
indexOf
- 
replace
- 
addManypublic SortedSetBucket.SortedSetResult<SortedSetBucket.AddOrUpdatesCounters,V> addMany(Collection<ScoredValue<V>> scoredValues, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) 
- 
incrScorepublic SortedSetBucket.SortedSetResult<Double,V> incrScore(double incr, V member, boolean addOnly, boolean updateOnly, boolean updateLessScoresOnly, boolean updateGreaterScoresOnly) 
- 
removeAll
- 
removeAllpublic SortedSetBucket.SortedSetResult<Long,V> removeAll(V min, boolean includeMin, V max, boolean includeMax) 
- 
removeAllpublic SortedSetBucket.SortedSetResult<Long,V> removeAll(Double min, boolean includeMin, Double max, boolean includeMax) 
- 
removeAll
- 
subsetByIndex
- 
subset
- 
subset
- 
toTreeSet
- 
sizepublic long size()
- 
stream- Specified by:
- streamin interface- SortableBucket<V>
 
- 
sort- Specified by:
- sortin interface- SortableBucket<V>
 
- 
equals
- 
hashCodepublic int hashCode()
 
-