public IntervalJoined( KeyedStream<IN1, KEY> left, KeyedStream<IN2, KEY> right, long lowerBound, long upperBound, boolean lowerBoundInclusive, boolean upperBoundInclusive) { this.left = checkNotNull(left); this.right = checkNotNull(right); this.lowerBound = lowerBound; this.upperBound = upperBound; this.lowerBoundInclusive = lowerBoundInclusive; this.upperBoundInclusive = upperBoundInclusive; this.keySelector1 = left.getKeySelector(); this.keySelector2 = right.getKeySelector(); }
transform.setStateKeySelectors(keyedInput1.getKeySelector(), keyedInput2.getKeySelector()); transform.setStateKeyType(keyType1);
@Internal private <OUT> SingleOutputStreamOperator<OUT> transform( final String functionName, final TypeInformation<OUT> outTypeInfo, final TwoInputStreamOperator<IN1, IN2, OUT> operator) { // read the output type of the input Transforms to coax out errors about MissingTypeInfo inputStream1.getType(); inputStream2.getType(); TwoInputTransformation<IN1, IN2, OUT> transform = new TwoInputTransformation<>( inputStream1.getTransformation(), inputStream2.getTransformation(), functionName, operator, outTypeInfo, environment.getParallelism()); if (inputStream1 instanceof KeyedStream) { KeyedStream<IN1, ?> keyedInput1 = (KeyedStream<IN1, ?>) inputStream1; TypeInformation<?> keyType1 = keyedInput1.getKeyType(); transform.setStateKeySelectors(keyedInput1.getKeySelector(), null); transform.setStateKeyType(keyType1); } @SuppressWarnings({ "unchecked", "rawtypes" }) SingleOutputStreamOperator<OUT> returnStream = new SingleOutputStreamOperator(environment, transform); getExecutionEnvironment().addOperator(transform); return returnStream; }
KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, Byte> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, Byte> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, Byte> keySel = input.getKeySelector();
private <R> SingleOutputStreamOperator<R> apply(InternalWindowFunction<Iterable<T>, R, K, W> function, TypeInformation<R> resultType, Function originalFunction) { KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, Byte> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
KeySelector<T, Byte> keySel = input.getKeySelector();
KeySelector<T, Byte> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
final KeySelector<T, Byte> keySel = input.getKeySelector();
KeySelector<T, K> keySel = input.getKeySelector();
final KeySelector<T, Byte> keySel = input.getKeySelector();