Java Code Examples for org.apache.flink.runtime.operators.testutils.TestData#getIntStringTupleSerializerFactory()
The following examples show how to use
org.apache.flink.runtime.operators.testutils.TestData#getIntStringTupleSerializerFactory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HashVsSortMiniBenchmark.java From flink with Apache License 2.0 | 6 votes |
@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 = MemoryManagerBuilder .newBuilder() .setMemorySize(MEMORY_SIZE) .setPageSize(PAGE_SIZE) .build(); this.ioManager = new IOManagerAsync(); }
Example 2
Source File: ExternalSortITCase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Before public void beforeTest() { this.memoryManager = new MemoryManager(MEMORY_SIZE, 1); this.ioManager = new IOManagerAsync(); this.pactRecordSerializer = TestData.getIntStringTupleSerializerFactory(); this.pactRecordComparator = TestData.getIntStringTupleComparator(); }
Example 3
Source File: CombiningUnilateralSortMergerITCase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Before public void beforeTest() { this.memoryManager = new MemoryManager(MEMORY_SIZE, 1); this.ioManager = new IOManagerAsync(); this.serializerFactory1 = TestData.getIntStringTupleSerializerFactory(); this.comparator1 = TestData.getIntStringTupleComparator(); this.serializerFactory2 = TestData.getIntIntTupleSerializerFactory(); this.comparator2 = TestData.getIntIntTupleComparator(); }
Example 4
Source File: HashVsSortMiniBenchmark.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@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(); }
Example 5
Source File: ExternalSortITCase.java From flink with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Before public void beforeTest() { this.memoryManager = new MemoryManager(MEMORY_SIZE, 1); this.ioManager = new IOManagerAsync(); this.pactRecordSerializer = TestData.getIntStringTupleSerializerFactory(); this.pactRecordComparator = TestData.getIntStringTupleComparator(); }
Example 6
Source File: CombiningUnilateralSortMergerITCase.java From flink with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Before public void beforeTest() { this.memoryManager = new MemoryManager(MEMORY_SIZE, 1); this.ioManager = new IOManagerAsync(); this.serializerFactory1 = TestData.getIntStringTupleSerializerFactory(); this.comparator1 = TestData.getIntStringTupleComparator(); this.serializerFactory2 = TestData.getIntIntTupleSerializerFactory(); this.comparator2 = TestData.getIntIntTupleComparator(); }
Example 7
Source File: HashVsSortMiniBenchmark.java From flink with Apache License 2.0 | 5 votes |
@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(); }
Example 8
Source File: ExternalSortITCase.java From flink with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Before public void beforeTest() { this.memoryManager = MemoryManagerBuilder.newBuilder().setMemorySize(MEMORY_SIZE).build(); this.ioManager = new IOManagerAsync(); this.pactRecordSerializer = TestData.getIntStringTupleSerializerFactory(); this.pactRecordComparator = TestData.getIntStringTupleComparator(); }
Example 9
Source File: CombiningUnilateralSortMergerITCase.java From flink with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") @Before public void beforeTest() { this.memoryManager = MemoryManagerBuilder.newBuilder().setMemorySize(MEMORY_SIZE).build(); this.ioManager = new IOManagerAsync(); this.serializerFactory1 = TestData.getIntStringTupleSerializerFactory(); this.comparator1 = TestData.getIntStringTupleComparator(); this.serializerFactory2 = TestData.getIntIntTupleSerializerFactory(); this.comparator2 = TestData.getIntIntTupleComparator(); }