public class ParallelMergeCombiningSequence<T> extends YieldingSequenceBase<T>
CombiningSequence around a
MergeSequence, but done in parallel on a ForkJoinPool running in 'async' mode.| Modifier and Type | Class and Description |
|---|---|
static class |
ParallelMergeCombiningSequence.MergeCombineMetrics
Metrics for the execution of a
ParallelMergeCombiningSequence on the ForkJoinPool |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TASK_INITIAL_YIELD_NUM_ROWS |
static int |
DEFAULT_TASK_SMALL_BATCH_NUM_ROWS |
static int |
DEFAULT_TASK_TARGET_RUN_TIME_MILLIS |
| Constructor and Description |
|---|
ParallelMergeCombiningSequence(ForkJoinPool workerPool,
List<Sequence<T>> inputSequences,
com.google.common.collect.Ordering<T> orderingFn,
BinaryOperator<T> combineFn,
boolean hasTimeout,
long timeoutMillis,
int queryPriority,
int parallelism,
int yieldAfter,
int batchSize,
int targetTimeMillis,
Consumer<ParallelMergeCombiningSequence.MergeCombineMetrics> reporter) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence.CancellationGizmo |
getCancellationGizmo() |
<OutType> Yielder<OutType> |
toYielder(OutType initValue,
YieldingAccumulator<OutType,T> accumulator)
Return a Yielder for accumulated sequence.
|
accumulatepublic static final int DEFAULT_TASK_TARGET_RUN_TIME_MILLIS
public static final int DEFAULT_TASK_INITIAL_YIELD_NUM_ROWS
public static final int DEFAULT_TASK_SMALL_BATCH_NUM_ROWS
public ParallelMergeCombiningSequence(ForkJoinPool workerPool, List<Sequence<T>> inputSequences, com.google.common.collect.Ordering<T> orderingFn, BinaryOperator<T> combineFn, boolean hasTimeout, long timeoutMillis, int queryPriority, int parallelism, int yieldAfter, int batchSize, int targetTimeMillis, Consumer<ParallelMergeCombiningSequence.MergeCombineMetrics> reporter)
public <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType,T> accumulator)
SequenceOutType - the type of accumulated value.initValue - the initial value to pass along to start the accumulation.accumulator - the accumulator which is responsible for accumulating input values.Yielderpublic org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence.CancellationGizmo getCancellationGizmo()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.