Search in sources :

Example 21 with UniformIntTupleGenerator

use of org.apache.flink.runtime.operators.testutils.UniformIntTupleGenerator in project flink by apache.

the class UniformIntTupleGeneratorInputFormat method open.

@Override
public void open(GenericInputSplit split) throws IOException {
    super.open(split);
    this.generator = new UniformIntTupleGenerator(keyTotal, valueTotal, false);
}
Also used : UniformIntTupleGenerator(org.apache.flink.runtime.operators.testutils.UniformIntTupleGenerator)

Aggregations

UniformIntTupleGenerator (org.apache.flink.runtime.operators.testutils.UniformIntTupleGenerator)21 Tuple2 (org.apache.flink.api.java.tuple.Tuple2)20 RuntimePairComparatorFactory (org.apache.flink.api.java.typeutils.runtime.RuntimePairComparatorFactory)16 Test (org.junit.Test)16 AtomicReference (java.util.concurrent.atomic.AtomicReference)4 InfiniteIntTupleIterator (org.apache.flink.runtime.operators.testutils.InfiniteIntTupleIterator)4 ExpectedTestException (org.apache.flink.runtime.operators.testutils.ExpectedTestException)2 IOException (java.io.IOException)1 Random (java.util.Random)1 ExecutionEnvironment (org.apache.flink.api.java.ExecutionEnvironment)1 Tuple3 (org.apache.flink.api.java.tuple.Tuple3)1 UnionIterator (org.apache.flink.runtime.operators.testutils.UnionIterator)1 UniformIntTupleGeneratorInputFormat (org.apache.flink.test.util.UniformIntTupleGeneratorInputFormat)1