Package org.apache.wayang.profiler.spark
Class SparkUnaryOperatorProfiler
- java.lang.Object
-
- org.apache.wayang.profiler.spark.SparkOperatorProfiler
-
- org.apache.wayang.profiler.spark.SparkUnaryOperatorProfiler
-
public class SparkUnaryOperatorProfiler extends SparkOperatorProfiler
SparkOperatorProfiler
implementation forSparkExecutionOperator
s with one input and one output.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wayang.profiler.spark.SparkOperatorProfiler
SparkOperatorProfiler.Result
-
-
Field Summary
-
Fields inherited from class org.apache.wayang.profiler.spark.SparkOperatorProfiler
cpuMhz, dataQuantumGenerators, executionPaddingTime, functionCompiler, inputCardinalities, logger, numCoresPerMachine, numMachines, numPartitions, operator, operatorGenerator, sparkExecutor
-
-
Constructor Summary
Constructors Constructor Description SparkUnaryOperatorProfiler(java.util.function.Supplier<SparkExecutionOperator> operatorGenerator, Configuration configuration, java.util.function.Supplier<?> dataQuantumGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SparkOperatorProfiler.Result
executeOperator()
Executes the profiling task.protected void
prepareInput(int inputIndex, long inputCardinality)
-
Methods inherited from class org.apache.wayang.profiler.spark.SparkOperatorProfiler
cleanUp, createChannelInstance, createChannelInstance, evaluate, partition, prepare, prepareInputRdd, prepareInputRddInDriver, prepareInputRddInWorker, provideCpuCycles, provideDiskBytes, provideNetworkBytes, run
-
-
-
-
Constructor Detail
-
SparkUnaryOperatorProfiler
public SparkUnaryOperatorProfiler(java.util.function.Supplier<SparkExecutionOperator> operatorGenerator, Configuration configuration, java.util.function.Supplier<?> dataQuantumGenerator)
-
-
Method Detail
-
prepareInput
protected void prepareInput(int inputIndex, long inputCardinality)
- Specified by:
prepareInput
in classSparkOperatorProfiler
-
executeOperator
protected SparkOperatorProfiler.Result executeOperator()
Description copied from class:SparkOperatorProfiler
Executes the profiling task. Requires that this instance is prepared.- Specified by:
executeOperator
in classSparkOperatorProfiler
-
-