V - the vector typepublic class VectorRank<V extends ValueVector> extends Object
| Constructor and Description |
|---|
VectorRank(BufferAllocator allocator)
Constructs a vector rank utility.
|
| Modifier and Type | Method and Description |
|---|---|
int |
indexAtRank(V vector,
VectorValueComparator<V> comparator,
int rank)
Given a rank r, gets the index of the element that is the rth smallest in the vector.
|
public VectorRank(BufferAllocator allocator)
allocator - the allocator to use.public int indexAtRank(V vector, VectorValueComparator<V> comparator, int rank)
vector - the vector from which to get the element index.comparator - the criteria for vector element comparison.rank - the rank to determine.Copyright © 2024 The Apache Software Foundation. All rights reserved.