public class TupleRunner extends SplitRunner<TupleSequence>
Modifier and Type | Field and Description |
---|---|
static TupleRunner |
BENCH
Tries different implementations and logs timings to stdout.
|
static TupleRunner |
DEFAULT
Standard instance for parallel processing.
|
static TupleRunner |
SEQUENTIAL
Always runs sequentially, no parallel processing.
|
Constructor and Description |
---|
TupleRunner(SplitRunner<?> runner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<A> A |
collect(SplitCollector<TupleSequence,A> collector,
java.util.function.Supplier<TupleSequence> tupleSupplier)
Performs a collection operation.
|
<A> A |
collectPool(SplitCollector<TupleSequence,A> collector,
java.util.function.Supplier<TupleSequence> tupleSupplier)
Performs a collection operation with a hint that accumulator pooling
is recommended.
|
SplitRunner<CoordSequence> |
coordRunner()
Returns a SplitRunner use with CoordSequences associted with this
object.
|
void |
paintData(java.util.function.BiConsumer<TupleSequence,Paper> tuplePainter,
Paper paper,
DataSpec dataSpec,
DataStore dataStore)
Paints tuple-based data onto a Paper instance, possibly in parallel.
|
void |
rangeData(java.util.function.BiConsumer<TupleSequence,Ranger> rangeFiller,
Ranger ranger,
DataSpec dataSpec,
DataStore dataStore)
Gathers range information from tuple-based data, possibly in parallel.
|
boolean |
willAttemptSplit(TupleSequence tseq)
Indicates whether an attempt will be made to split a top-level
splittable in order to process it.
|
createBenchRunner, createDefaultRunner, createSequentialRunner, createStandardRunner
public static final TupleRunner DEFAULT
public static final TupleRunner SEQUENTIAL
public static final TupleRunner BENCH
public TupleRunner(SplitRunner<?> runner)
runner
- provides basic behaviourpublic boolean willAttemptSplit(TupleSequence tseq)
SplitRunner
willAttemptSplit
in class SplitRunner<TupleSequence>
tseq
- splittablepublic <A> A collect(SplitCollector<TupleSequence,A> collector, java.util.function.Supplier<TupleSequence> tupleSupplier)
SplitRunner
collect
in class SplitRunner<TupleSequence>
collector
- collectortupleSupplier
- supplier for splittable object to processpublic <A> A collectPool(SplitCollector<TupleSequence,A> collector, java.util.function.Supplier<TupleSequence> tupleSupplier)
SplitRunner
collectPool
in class SplitRunner<TupleSequence>
collector
- collectortupleSupplier
- supplier for splittable object to processpublic void paintData(java.util.function.BiConsumer<TupleSequence,Paper> tuplePainter, Paper paper, DataSpec dataSpec, DataStore dataStore)
tuplePainter
argument corresponds to
method SplitCollector.accumulate(S, A)
.tuplePainter
- defines how a TupleSequence is painted onto paperpaper
- paper onto which painting will be donedataSpec
- data specdataStore
- data storagepublic void rangeData(java.util.function.BiConsumer<TupleSequence,Ranger> rangeFiller, Ranger ranger, DataSpec dataSpec, DataStore dataStore)
rangeFiller
argument corresponds to
method SplitCollector.accumulate(S, A)
.rangeFiller
- defines how a TupleSequence is used to populate
a rangerranger
- ranger to which the results will be writtendataSpec
- data specdataStore
- data storagepublic SplitRunner<CoordSequence> coordRunner()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.