use of org.apache.flink.runtime.io.disk.iomanager.IOManagerAsync 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();
}
use of org.apache.flink.runtime.io.disk.iomanager.IOManagerAsync 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();
}
Aggregations