Package org.apache.wayang.profiler.java
Class OperatorProfiler
java.lang.Object
org.apache.wayang.profiler.java.OperatorProfiler
- Direct Known Subclasses:
BinaryOperatorProfiler
,SinkProfiler
,SourceProfiler
,UnaryOperatorProfiler
Allows to instrument an
JavaExecutionOperator
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The result of a single profiling run. -
Field Summary
FieldsModifier and TypeFieldDescriptionint
protected JavaExecutor
protected final org.apache.logging.log4j.Logger
protected JavaExecutionOperator
protected Supplier<JavaExecutionOperator>
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorProfiler
(Supplier<JavaExecutionOperator> operatorGenerator, Supplier<?>... dataQuantumGenerators) -
Method Summary
Modifier and TypeMethodDescriptionprotected static CollectionChannel.Instance
protected static CollectionChannel.Instance
createChannelInstance
(Collection<?> collection) protected void
evaluate
(ChannelInstance[] inputs, ChannelInstance[] outputs) protected abstract long
Executes the profiling task.void
prepare
(long... inputCardinalities) protected long
protected long
run()
Executes and profiles the profiling task.
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger -
cpuMhz
public int cpuMhz -
operatorGenerator
-
operator
-
executor
-
dataQuantumGenerators
-
-
Constructor Details
-
OperatorProfiler
public OperatorProfiler(Supplier<JavaExecutionOperator> operatorGenerator, Supplier<?>... dataQuantumGenerators)
-
-
Method Details
-
prepare
public void prepare(long... inputCardinalities) -
run
Executes and profiles the profiling task. Requires that this instance is prepared. -
provideNetworkBytes
protected long provideNetworkBytes() -
provideDiskBytes
protected long provideDiskBytes() -
executeOperator
protected abstract long executeOperator()Executes the profiling task. Requires that this instance is prepared. -
createChannelInstance
-
createChannelInstance
-
getOperator
-
evaluate
-