Java Code Examples for org.apache.flink.optimizer.dataproperties.LocalProperties#clearUniqueFieldSets()

The following examples show how to use org.apache.flink.optimizer.dataproperties.LocalProperties#clearUniqueFieldSets() . 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: CrossStreamOuterFirstDescriptor.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	// uniqueness becomes grouping with streamed nested loops
	if ((in1.getGroupedFields() == null || in1.getGroupedFields().size() == 0) &&
			in1.getUniqueFields() != null && in1.getUniqueFields().size() > 0)
	{
		return LocalProperties.forGrouping(in1.getUniqueFields().iterator().next().toFieldList());
	} else {
		return in1.clearUniqueFieldSets();
	}
}
 
Example 2
Source File: CrossStreamOuterFirstDescriptor.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	// uniqueness becomes grouping with streamed nested loops
	if ((in1.getGroupedFields() == null || in1.getGroupedFields().size() == 0) &&
			in1.getUniqueFields() != null && in1.getUniqueFields().size() > 0)
	{
		return LocalProperties.forGrouping(in1.getUniqueFields().iterator().next().toFieldList());
	} else {
		return in1.clearUniqueFieldSets();
	}
}
 
Example 3
Source File: CrossStreamOuterFirstDescriptor.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	// uniqueness becomes grouping with streamed nested loops
	if ((in1.getGroupedFields() == null || in1.getGroupedFields().size() == 0) &&
			in1.getUniqueFields() != null && in1.getUniqueFields().size() > 0)
	{
		return LocalProperties.forGrouping(in1.getUniqueFields().iterator().next().toFieldList());
	} else {
		return in1.clearUniqueFieldSets();
	}
}
 
Example 4
Source File: CrossStreamOuterSecondDescriptor.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	// uniqueness becomes grouping with streamed nested loops
	if ((in2.getGroupedFields() == null || in2.getGroupedFields().size() == 0) &&
			in2.getUniqueFields() != null && in2.getUniqueFields().size() > 0)
	{
		return LocalProperties.forGrouping(in2.getUniqueFields().iterator().next().toFieldList());
	} else {
		return in2.clearUniqueFieldSets();
	}
}
 
Example 5
Source File: CoGroupDescriptor.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	LocalProperties comb = LocalProperties.combine(in1, in2);
	return comb.clearUniqueFieldSets();
}
 
Example 6
Source File: FlatMapDescriptor.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 7
Source File: ReduceProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 8
Source File: AbstractSortMergeJoinDescriptor.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	LocalProperties comb = LocalProperties.combine(in1, in2);
	return comb.clearUniqueFieldSets();
}
 
Example 9
Source File: GroupReduceWithCombineProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 10
Source File: AllGroupCombineProperties.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 11
Source File: PartialGroupProperties.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 12
Source File: ReduceProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 13
Source File: CoGroupRawDescriptor.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties in1, LocalProperties in2) {
	LocalProperties comb = LocalProperties.combine(in1, in2);
	return comb.clearUniqueFieldSets();
}
 
Example 14
Source File: AllGroupWithPartialPreGroupProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 15
Source File: PartialGroupProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 16
Source File: AllGroupWithPartialPreGroupProperties.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 17
Source File: AllGroupCombineProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 18
Source File: ReduceProperties.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 19
Source File: GroupReduceProperties.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}
 
Example 20
Source File: AllGroupReduceProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public LocalProperties computeLocalProperties(LocalProperties lProps) {
	return lProps.clearUniqueFieldSets();
}