org.qcri.rheem.profiler.java.SinkProfiler Maven / Gradle / Ivy
The newest version!
package org.qcri.rheem.profiler.java;
import org.apache.commons.lang3.Validate;
import org.qcri.rheem.java.channels.JavaChannelInstance;
import org.qcri.rheem.java.operators.JavaExecutionOperator;
import java.util.ArrayList;
import java.util.Collection;
import java.util.function.Supplier;
/**
* {@link OperatorProfiler} implementation for sinks.
*/
public class SinkProfiler extends OperatorProfiler {
private JavaChannelInstance inputChannelInstance;
public SinkProfiler(Supplier operatorGenerator, Supplier>... dataQuantumGenerators) {
super(operatorGenerator, dataQuantumGenerators);
}
@Override
public void prepare(long... inputCardinalities) {
Validate.isTrue(inputCardinalities.length == 1);
super.prepare(inputCardinalities);
int inputCardinality = (int) inputCardinalities[0];
// Create input data.
Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy