Java Code Examples for org.apache.flink.optimizer.dataproperties.RequestedLocalProperties#setOrdering()
The following examples show how to use
org.apache.flink.optimizer.dataproperties.RequestedLocalProperties#setOrdering() .
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: DataSinkNode.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override public void computeInterestingPropertiesForInputs(CostEstimator estimator) { final InterestingProperties iProps = new InterestingProperties(); { final RequestedGlobalProperties partitioningProps = new RequestedGlobalProperties(); iProps.addGlobalProperties(partitioningProps); } { final Ordering localOrder = getOperator().getLocalOrder(); final RequestedLocalProperties orderProps = new RequestedLocalProperties(); if (localOrder != null) { orderProps.setOrdering(localOrder); } iProps.addLocalProperties(orderProps); } this.input.setInterestingProperties(iProps); }
Example 2
Source File: DataSinkNode.java From flink with Apache License 2.0 | 6 votes |
@Override public void computeInterestingPropertiesForInputs(CostEstimator estimator) { final InterestingProperties iProps = new InterestingProperties(); { final RequestedGlobalProperties partitioningProps = new RequestedGlobalProperties(); iProps.addGlobalProperties(partitioningProps); } { final Ordering localOrder = getOperator().getLocalOrder(); final RequestedLocalProperties orderProps = new RequestedLocalProperties(); if (localOrder != null) { orderProps.setOrdering(localOrder); } iProps.addLocalProperties(orderProps); } this.input.setInterestingProperties(iProps); }
Example 3
Source File: DataSinkNode.java From flink with Apache License 2.0 | 6 votes |
@Override public void computeInterestingPropertiesForInputs(CostEstimator estimator) { final InterestingProperties iProps = new InterestingProperties(); { final RequestedGlobalProperties partitioningProps = new RequestedGlobalProperties(); iProps.addGlobalProperties(partitioningProps); } { final Ordering localOrder = getOperator().getLocalOrder(); final RequestedLocalProperties orderProps = new RequestedLocalProperties(); if (localOrder != null) { orderProps.setOrdering(localOrder); } iProps.addLocalProperties(orderProps); } this.input.setInterestingProperties(iProps); }
Example 4
Source File: GroupReduceWithCombineProperties.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { RequestedLocalProperties props = new RequestedLocalProperties(); if (this.ordering == null) { props.setGroupedFields(this.keys); } else { props.setOrdering(this.ordering); } return Collections.singletonList(props); }
Example 5
Source File: GroupReduceProperties.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { RequestedLocalProperties props = new RequestedLocalProperties(); if (this.ordering == null) { props.setGroupedFields(this.keys); } else { props.setOrdering(this.ordering); } return Collections.singletonList(props); }
Example 6
Source File: SortPartitionNode.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { // set partition order as required local property RequestedLocalProperties rlp = new RequestedLocalProperties(); rlp.setOrdering(this.partitionOrder); return Collections.singletonList(rlp); }
Example 7
Source File: GroupReduceWithCombineProperties.java From flink with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { RequestedLocalProperties props = new RequestedLocalProperties(); if (this.ordering == null) { props.setGroupedFields(this.keys); } else { props.setOrdering(this.ordering); } return Collections.singletonList(props); }
Example 8
Source File: GroupReduceProperties.java From flink with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { RequestedLocalProperties props = new RequestedLocalProperties(); if (this.ordering == null) { props.setGroupedFields(this.keys); } else { props.setOrdering(this.ordering); } return Collections.singletonList(props); }
Example 9
Source File: SortPartitionNode.java From flink with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { // set partition order as required local property RequestedLocalProperties rlp = new RequestedLocalProperties(); rlp.setOrdering(this.partitionOrder); return Collections.singletonList(rlp); }
Example 10
Source File: GroupReduceWithCombineProperties.java From flink with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { RequestedLocalProperties props = new RequestedLocalProperties(); if (this.ordering == null) { props.setGroupedFields(this.keys); } else { props.setOrdering(this.ordering); } return Collections.singletonList(props); }
Example 11
Source File: GroupReduceProperties.java From flink with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { RequestedLocalProperties props = new RequestedLocalProperties(); if (this.ordering == null) { props.setGroupedFields(this.keys); } else { props.setOrdering(this.ordering); } return Collections.singletonList(props); }
Example 12
Source File: SortPartitionNode.java From flink with Apache License 2.0 | 5 votes |
@Override protected List<RequestedLocalProperties> createPossibleLocalProperties() { // set partition order as required local property RequestedLocalProperties rlp = new RequestedLocalProperties(); rlp.setOrdering(this.partitionOrder); return Collections.singletonList(rlp); }