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

The following examples show how to use org.apache.flink.optimizer.dataproperties.LocalProperties#forOrdering() . 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: Channel.java    From Flink-CEPplus with Apache License 2.0 6 votes vote down vote up
public LocalProperties getLocalProperties() {
	if (this.localProps == null) {
		computeLocalPropertiesAfterShippingOnly();
		switch (this.localStrategy) {
			case NONE:
				break;
			case SORT:
			case COMBININGSORT:
				this.localProps = LocalProperties.forOrdering(Utils.createOrdering(this.localKeys, this.localSortOrder));
				break;
			default:
				throw new CompilerException("Unsupported local strategy for channel.");
		}
	}
	
	return this.localProps;
}
 
Example 2
Source File: Channel.java    From flink with Apache License 2.0 6 votes vote down vote up
public LocalProperties getLocalProperties() {
	if (this.localProps == null) {
		computeLocalPropertiesAfterShippingOnly();
		switch (this.localStrategy) {
			case NONE:
				break;
			case SORT:
			case COMBININGSORT:
				this.localProps = LocalProperties.forOrdering(Utils.createOrdering(this.localKeys, this.localSortOrder));
				break;
			default:
				throw new CompilerException("Unsupported local strategy for channel.");
		}
	}
	
	return this.localProps;
}
 
Example 3
Source File: Channel.java    From flink with Apache License 2.0 6 votes vote down vote up
public LocalProperties getLocalProperties() {
	if (this.localProps == null) {
		computeLocalPropertiesAfterShippingOnly();
		switch (this.localStrategy) {
			case NONE:
				break;
			case SORT:
			case COMBININGSORT:
				this.localProps = LocalProperties.forOrdering(Utils.createOrdering(this.localKeys, this.localSortOrder));
				break;
			default:
				throw new CompilerException("Unsupported local strategy for channel.");
		}
	}
	
	return this.localProps;
}