Module org.elasticsearch.compute
Class FloatFloatBucketedSort
java.lang.Object
org.elasticsearch.compute.data.sort.FloatFloatBucketedSort
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
Aggregates the top N
float values per bucket.
See BucketedSort for more information.
This class is generated. Edit @{code X-BucketedSort.java.st} instead of this file.-
Constructor Summary
ConstructorsConstructorDescriptionFloatFloatBucketedSort(BigArrays bigArrays, SortOrder order, int bucketSize) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()voidcollect(float value, float extraValue, int bucket) Collects avalueinto abucket.intThe number of values to store per bucket.getOrder()The order of the sort.voidmerge(int groupId, FloatFloatBucketedSort other, int otherGroupId) Merge the values fromother'sotherGroupIdintogroupId.voidtoBlocks(BlockFactory blockFactory, Block[] blocks, int offset, IntVector selected) Creates a block with the values from theselectedgroups.
-
Constructor Details
-
FloatFloatBucketedSort
-
-
Method Details
-
collect
public void collect(float value, float extraValue, int bucket) Collects avalueinto abucket.It may or may not be inserted in the heap, depending on if it is better than the current root.
-
getOrder
The order of the sort. -
getBucketSize
public int getBucketSize()The number of values to store per bucket. -
merge
Merge the values fromother'sotherGroupIdintogroupId. -
toBlocks
Creates a block with the values from theselectedgroups. -
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-