public class BottomKFinder<T> extends AbstractTopKBottomKFinder<T>
bucketList| Constructor and Description |
|---|
BottomKFinder()
Sets the capacity as Integer max
|
BottomKFinder(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
List<Counter<T>> |
get(int k)
Get the bottomK items and their frequencies
|
protected org.wso2.extension.siddhi.execution.extrema.util.AbstractTopKBottomKFinder.Bucket |
getBucketWithCounterToReplace()
Get the bucket with the counter that should be replaced
The least important counter will be considered
The counter considered here is the counter with the highest frequency
|
offer, offerpublic BottomKFinder()
public BottomKFinder(int capacity)
capacity - Maximum number of unique items to keeppublic List<Counter<T>> get(int k)
get in class AbstractTopKBottomKFinder<T>k - The number of elements to fetchprotected org.wso2.extension.siddhi.execution.extrema.util.AbstractTopKBottomKFinder.Bucket getBucketWithCounterToReplace()
getBucketWithCounterToReplace in class AbstractTopKBottomKFinder<T>Copyright © 2017 WSO2. All rights reserved.