T - type of the elements in the queue set.PQS - type of the priority queue. Must have set semantics and HeapPriorityQueueElement.public static interface KeyGroupPartitionedPriorityQueue.PartitionQueueSetFactory<T,PQS extends InternalPriorityQueue<T> & HeapPriorityQueueElement>
KeyGroupPartitionedPriorityQueue.| Modifier and Type | Method and Description |
|---|---|
PQS |
create(int keyGroupId,
int numKeyGroups,
KeyExtractorFunction<T> keyExtractorFunction,
PriorityComparator<T> elementPriorityComparator)
Creates a new queue for a given key-group partition.
|
@Nonnull PQS create(@Nonnegative int keyGroupId, @Nonnegative int numKeyGroups, @Nonnull KeyExtractorFunction<T> keyExtractorFunction, @Nonnull PriorityComparator<T> elementPriorityComparator)
keyGroupId - the key-group of the elements managed by the produced queue.numKeyGroups - the total number of key-groups in the job.elementPriorityComparator - the comparator that determines the order of managed
elements by priority.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.