Package org.apache.wayang.profiler.java
Class SourceProfiler
- java.lang.Object
-
- org.apache.wayang.profiler.java.OperatorProfiler
-
- org.apache.wayang.profiler.java.SourceProfiler
-
- Direct Known Subclasses:
JavaCollectionSourceProfiler
,JavaTextFileSourceProfiler
public abstract class SourceProfiler extends OperatorProfiler
OperatorProfiler
implementation for sinks.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wayang.profiler.java.OperatorProfiler
OperatorProfiler.Result
-
-
Field Summary
-
Fields inherited from class org.apache.wayang.profiler.java.OperatorProfiler
cpuMhz, dataQuantumGenerators, executor, logger, operator, operatorGenerator
-
-
Constructor Summary
Constructors Constructor Description SourceProfiler(java.util.function.Supplier<JavaExecutionOperator> operatorGenerator, java.util.function.Supplier<?>... dataQuantumGenerators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
executeOperator()
Executes the profiling task.void
prepare(long... inputCardinalities)
-
Methods inherited from class org.apache.wayang.profiler.java.OperatorProfiler
createChannelInstance, createChannelInstance, evaluate, getOperator, provideDiskBytes, provideNetworkBytes, run
-
-
-
-
Constructor Detail
-
SourceProfiler
public SourceProfiler(java.util.function.Supplier<JavaExecutionOperator> operatorGenerator, java.util.function.Supplier<?>... dataQuantumGenerators)
-
-
Method Detail
-
prepare
public void prepare(long... inputCardinalities)
- Overrides:
prepare
in classOperatorProfiler
-
executeOperator
protected long executeOperator()
Description copied from class:OperatorProfiler
Executes the profiling task. Requires that this instance is prepared.- Specified by:
executeOperator
in classOperatorProfiler
-
-