Search in sources :

Example 6 with GenericPairComparator

use of org.apache.flink.api.common.typeutils.GenericPairComparator in project flink by apache.

the class NonReusingSortMergeCoGroupIteratorITCase method beforeTest.

@SuppressWarnings("unchecked")
@Before
public void beforeTest() {
    this.serializer1 = TestData.getIntStringTupleSerializer();
    this.serializer2 = TestData.getIntStringTupleSerializer();
    this.comparator1 = TestData.getIntStringTupleComparator();
    this.comparator2 = TestData.getIntStringTupleComparator();
    this.pairComparator = new GenericPairComparator(this.comparator1, this.comparator2);
}
Also used : GenericPairComparator(org.apache.flink.api.common.typeutils.GenericPairComparator) Before(org.junit.Before)

Example 7 with GenericPairComparator

use of org.apache.flink.api.common.typeutils.GenericPairComparator in project flink by apache.

the class ReusingSortMergeCoGroupIteratorITCase method beforeTest.

@SuppressWarnings("unchecked")
@Before
public void beforeTest() {
    this.serializer1 = TestData.getIntStringTupleSerializer();
    this.serializer2 = TestData.getIntStringTupleSerializer();
    this.comparator1 = TestData.getIntStringTupleComparator();
    this.comparator2 = TestData.getIntStringTupleComparator();
    this.pairComparator = new GenericPairComparator(comparator1, comparator2);
}
Also used : GenericPairComparator(org.apache.flink.api.common.typeutils.GenericPairComparator) Before(org.junit.Before)

Example 8 with GenericPairComparator

use of org.apache.flink.api.common.typeutils.GenericPairComparator in project flink by apache.

the class HashVsSortMiniBenchmark method beforeTest.

@SuppressWarnings("unchecked")
@Before
public void beforeTest() {
    this.serializer1 = TestData.getIntStringTupleSerializerFactory();
    this.serializer2 = TestData.getIntStringTupleSerializerFactory();
    this.comparator1 = TestData.getIntStringTupleComparator();
    this.comparator2 = TestData.getIntStringTupleComparator();
    this.pairComparator11 = new GenericPairComparator(this.comparator1, this.comparator2);
    this.memoryManager = new MemoryManager(MEMORY_SIZE, 1, PAGE_SIZE, MemoryType.HEAP, true);
    this.ioManager = new IOManagerAsync();
}
Also used : IOManagerAsync(org.apache.flink.runtime.io.disk.iomanager.IOManagerAsync) GenericPairComparator(org.apache.flink.api.common.typeutils.GenericPairComparator) MemoryManager(org.apache.flink.runtime.memory.MemoryManager) Before(org.junit.Before)

Example 9 with GenericPairComparator

use of org.apache.flink.api.common.typeutils.GenericPairComparator in project flink by apache.

the class ReOpenableHashTableTestBase method beforeTest.

@SuppressWarnings({ "unchecked", "rawtypes" })
@Before
public void beforeTest() {
    this.recordSerializer = TestData.getIntStringTupleSerializer();
    this.record1Comparator = TestData.getIntStringTupleComparator();
    this.record2Comparator = TestData.getIntStringTupleComparator();
    this.recordPairComparator = new GenericPairComparator(this.record1Comparator, this.record2Comparator);
    this.recordBuildSideAccesssor = TestData.getIntIntTupleSerializer();
    this.recordProbeSideAccesssor = TestData.getIntIntTupleSerializer();
    this.recordBuildSideComparator = TestData.getIntIntTupleComparator();
    this.recordProbeSideComparator = TestData.getIntIntTupleComparator();
    this.pactRecordComparator = new GenericPairComparator(this.recordBuildSideComparator, this.recordProbeSideComparator);
    this.memoryManager = new MemoryManager(MEMORY_SIZE, 1, PAGE_SIZE, MemoryType.HEAP, true);
    this.ioManager = new IOManagerAsync();
}
Also used : IOManagerAsync(org.apache.flink.runtime.io.disk.iomanager.IOManagerAsync) GenericPairComparator(org.apache.flink.api.common.typeutils.GenericPairComparator) MemoryManager(org.apache.flink.runtime.memory.MemoryManager) Before(org.junit.Before)

Aggregations

GenericPairComparator (org.apache.flink.api.common.typeutils.GenericPairComparator)9 IOManagerAsync (org.apache.flink.runtime.io.disk.iomanager.IOManagerAsync)7 Before (org.junit.Before)7 MemoryManager (org.apache.flink.runtime.memory.MemoryManager)6 TestData (org.apache.flink.runtime.operators.testutils.TestData)2 IntPairSerializer (org.apache.flink.runtime.operators.testutils.types.IntPairSerializer)2 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 IntComparator (org.apache.flink.api.common.typeutils.base.IntComparator)1 BytePrimitiveArrayComparator (org.apache.flink.api.common.typeutils.base.array.BytePrimitiveArrayComparator)1 Tuple2 (org.apache.flink.api.java.tuple.Tuple2)1 TupleComparator (org.apache.flink.api.java.typeutils.runtime.TupleComparator)1 TupleSerializer (org.apache.flink.api.java.typeutils.runtime.TupleSerializer)1 MemorySegment (org.apache.flink.core.memory.MemorySegment)1 IOManager (org.apache.flink.runtime.io.disk.iomanager.IOManager)1 DiscardingOutputCollector (org.apache.flink.runtime.operators.testutils.DiscardingOutputCollector)1 MatchRemovingJoiner (org.apache.flink.runtime.operators.testutils.MatchRemovingJoiner)1 TupleConstantValueIterator (org.apache.flink.runtime.operators.testutils.TestData.TupleConstantValueIterator)1 TupleGenerator (org.apache.flink.runtime.operators.testutils.TestData.TupleGenerator)1 TupleGeneratorIterator (org.apache.flink.runtime.operators.testutils.TestData.TupleGeneratorIterator)1