Java Code Examples for org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint#OPTIMIZER_CHOOSES
The following examples show how to use
org.apache.flink.api.common.operators.base.JoinOperatorBase.JoinHint#OPTIMIZER_CHOOSES .
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: OuterJoinNode.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
private List<OperatorDescriptorDual> getDataProperties() { OuterJoinOperatorBase<?, ?, ?, ?> operator = getOperator(); OuterJoinType type = operator.getOuterJoinType(); JoinHint joinHint = operator.getJoinHint(); joinHint = joinHint == null ? JoinHint.OPTIMIZER_CHOOSES : joinHint; List<OperatorDescriptorDual> list; switch (type) { case LEFT: list = createLeftOuterJoinDescriptors(joinHint); break; case RIGHT: list = createRightOuterJoinDescriptors(joinHint); break; case FULL: list = createFullOuterJoinDescriptors(joinHint); break; default: throw new CompilerException("Unknown outer join type: " + type); } Partitioner<?> customPartitioner = operator.getCustomPartitioner(); if (customPartitioner != null) { for (OperatorDescriptorDual desc : list) { ((AbstractJoinDescriptor) desc).setCustomPartitioner(customPartitioner); } } return list; }
Example 2
Source File: OuterJoinNode.java From flink with Apache License 2.0 | 5 votes |
private List<OperatorDescriptorDual> getDataProperties() { OuterJoinOperatorBase<?, ?, ?, ?> operator = getOperator(); OuterJoinType type = operator.getOuterJoinType(); JoinHint joinHint = operator.getJoinHint(); joinHint = joinHint == null ? JoinHint.OPTIMIZER_CHOOSES : joinHint; List<OperatorDescriptorDual> list; switch (type) { case LEFT: list = createLeftOuterJoinDescriptors(joinHint); break; case RIGHT: list = createRightOuterJoinDescriptors(joinHint); break; case FULL: list = createFullOuterJoinDescriptors(joinHint); break; default: throw new CompilerException("Unknown outer join type: " + type); } Partitioner<?> customPartitioner = operator.getCustomPartitioner(); if (customPartitioner != null) { for (OperatorDescriptorDual desc : list) { ((AbstractJoinDescriptor) desc).setCustomPartitioner(customPartitioner); } } return list; }
Example 3
Source File: OuterJoinNode.java From flink with Apache License 2.0 | 5 votes |
private List<OperatorDescriptorDual> getDataProperties() { OuterJoinOperatorBase<?, ?, ?, ?> operator = getOperator(); OuterJoinType type = operator.getOuterJoinType(); JoinHint joinHint = operator.getJoinHint(); joinHint = joinHint == null ? JoinHint.OPTIMIZER_CHOOSES : joinHint; List<OperatorDescriptorDual> list; switch (type) { case LEFT: list = createLeftOuterJoinDescriptors(joinHint); break; case RIGHT: list = createRightOuterJoinDescriptors(joinHint); break; case FULL: list = createFullOuterJoinDescriptors(joinHint); break; default: throw new CompilerException("Unknown outer join type: " + type); } Partitioner<?> customPartitioner = operator.getCustomPartitioner(); if (customPartitioner != null) { for (OperatorDescriptorDual desc : list) { ((AbstractJoinDescriptor) desc).setCustomPartitioner(customPartitioner); } } return list; }
Example 4
Source File: JoinOperatorSetsBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public JoinOperatorSetsBase(DataSet<I1> input1, DataSet<I2> input2) { this(input1, input2, JoinHint.OPTIMIZER_CHOOSES); }
Example 5
Source File: JoinOperatorSetsBase.java From flink with Apache License 2.0 | 4 votes |
public JoinOperatorSetsBase(DataSet<I1> input1, DataSet<I2> input2) { this(input1, input2, JoinHint.OPTIMIZER_CHOOSES); }
Example 6
Source File: JoinOperatorSetsBase.java From flink with Apache License 2.0 | 4 votes |
public JoinOperatorSetsBase(DataSet<I1> input1, DataSet<I2> input2) { this(input1, input2, JoinHint.OPTIMIZER_CHOOSES); }
Example 7
Source File: DataSet.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Initiates a Left Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of the <b>left</b> DataSet (i.e. {@code this}) that do not have a matching * element on the other side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> leftOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.LEFT_OUTER); }
Example 8
Source File: DataSet.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Initiates a Right Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of the <b>right</b> DataSet (i.e. {@code other}) that do not have a matching * element on {@code this} side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> rightOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.RIGHT_OUTER); }
Example 9
Source File: DataSet.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Initiates a Full Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of <b>both</b> DataSets that do not have a matching * element on the opposing side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> fullOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.FULL_OUTER); }
Example 10
Source File: DataSet.java From flink with Apache License 2.0 | 2 votes |
/** * Initiates a Left Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of the <b>left</b> DataSet (i.e. {@code this}) that do not have a matching * element on the other side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> leftOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.LEFT_OUTER); }
Example 11
Source File: DataSet.java From flink with Apache License 2.0 | 2 votes |
/** * Initiates a Right Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of the <b>right</b> DataSet (i.e. {@code other}) that do not have a matching * element on {@code this} side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> rightOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.RIGHT_OUTER); }
Example 12
Source File: DataSet.java From flink with Apache License 2.0 | 2 votes |
/** * Initiates a Full Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of <b>both</b> DataSets that do not have a matching * element on the opposing side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> fullOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.FULL_OUTER); }
Example 13
Source File: DataSet.java From flink with Apache License 2.0 | 2 votes |
/** * Initiates a Left Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of the <b>left</b> DataSet (i.e. {@code this}) that do not have a matching * element on the other side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> leftOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.LEFT_OUTER); }
Example 14
Source File: DataSet.java From flink with Apache License 2.0 | 2 votes |
/** * Initiates a Right Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of the <b>right</b> DataSet (i.e. {@code other}) that do not have a matching * element on {@code this} side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> rightOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.RIGHT_OUTER); }
Example 15
Source File: DataSet.java From flink with Apache License 2.0 | 2 votes |
/** * Initiates a Full Outer Join transformation. * * <p>An Outer Join transformation joins two elements of two * {@link DataSet DataSets} on key equality and provides multiple ways to combine * joining elements into one DataSet. * * <p>Elements of <b>both</b> DataSets that do not have a matching * element on the opposing side are joined with {@code null} and emitted to the * resulting DataSet. * * @param other The other DataSet with which this DataSet is joined. * @return A JoinOperatorSet to continue the definition of the Join transformation. * * @see org.apache.flink.api.java.operators.join.JoinOperatorSetsBase * @see DataSet */ public <R> JoinOperatorSetsBase<T, R> fullOuterJoin(DataSet<R> other) { return new JoinOperatorSetsBase<>(this, other, JoinHint.OPTIMIZER_CHOOSES, JoinType.FULL_OUTER); }