use of org.apache.flink.api.common.operators.SingleInputSemanticProperties in project flink by apache.
the class RequestedGlobalPropertiesFilteringTest method testEraseAll1.
@Test
public void testEraseAll1() {
SingleInputSemanticProperties sProp = new SingleInputSemanticProperties();
RequestedGlobalProperties rgProps = new RequestedGlobalProperties();
rgProps.setAnyPartitioning(new FieldSet(0, 1, 2));
RequestedGlobalProperties filtered = rgProps.filterBySemanticProperties(sProp, 0);
assertNull(filtered);
}
use of org.apache.flink.api.common.operators.SingleInputSemanticProperties in project flink by apache.
the class RequestedGlobalPropertiesFilteringTest method testRebalancingErased.
@Test
public void testRebalancingErased() {
SingleInputSemanticProperties sProp = new SingleInputSemanticProperties();
SemanticPropUtil.getSemanticPropsSingleFromString(sProp, new String[] { "0;1;2" }, null, null, tupleInfo, tupleInfo);
RequestedGlobalProperties rgProps = new RequestedGlobalProperties();
rgProps.setForceRebalancing();
RequestedGlobalProperties filtered = rgProps.filterBySemanticProperties(sProp, 0);
assertNull(filtered);
}
use of org.apache.flink.api.common.operators.SingleInputSemanticProperties in project flink by apache.
the class RequestedGlobalPropertiesFilteringTest method testRangePartitioningErased.
@Test
public void testRangePartitioningErased() {
SingleInputSemanticProperties sProp = new SingleInputSemanticProperties();
SemanticPropUtil.getSemanticPropsSingleFromString(sProp, new String[] { "1;2" }, null, null, tupleInfo, tupleInfo);
Ordering o = new Ordering();
o.appendOrdering(3, LongValue.class, Order.DESCENDING);
o.appendOrdering(1, IntValue.class, Order.ASCENDING);
o.appendOrdering(6, ByteValue.class, Order.DESCENDING);
RequestedGlobalProperties rgProps = new RequestedGlobalProperties();
rgProps.setRangePartitioned(o);
RequestedGlobalProperties filtered = rgProps.filterBySemanticProperties(sProp, 0);
assertNull(filtered);
}
use of org.apache.flink.api.common.operators.SingleInputSemanticProperties in project flink by apache.
the class RequestedGlobalPropertiesFilteringTest method testHashPartitioningErased.
@Test
public void testHashPartitioningErased() {
SingleInputSemanticProperties sProp = new SingleInputSemanticProperties();
SemanticPropUtil.getSemanticPropsSingleFromString(sProp, new String[] { "1;2" }, null, null, tupleInfo, tupleInfo);
RequestedGlobalProperties rgProps = new RequestedGlobalProperties();
rgProps.setHashPartitioned(new FieldSet(0, 3, 4));
RequestedGlobalProperties filtered = rgProps.filterBySemanticProperties(sProp, 0);
assertNull(filtered);
}
use of org.apache.flink.api.common.operators.SingleInputSemanticProperties in project flink by apache.
the class RequestedGlobalPropertiesFilteringTest method testAnyPartitioningErased.
@Test
public void testAnyPartitioningErased() {
SingleInputSemanticProperties sProp = new SingleInputSemanticProperties();
SemanticPropUtil.getSemanticPropsSingleFromString(sProp, new String[] { "1;2" }, null, null, tupleInfo, tupleInfo);
RequestedGlobalProperties rgProps = new RequestedGlobalProperties();
rgProps.setAnyPartitioning(new FieldSet(0, 3, 4));
RequestedGlobalProperties filtered = rgProps.filterBySemanticProperties(sProp, 0);
assertNull(filtered);
}
Aggregations