/** * Creates a new {@link ConnectedStreams} by connecting * {@link DataStream} outputs of (possible) different types with each other. * The DataStreams connected using this operator can be used with * CoFunctions to apply joint transformations. * * @param dataStream * The DataStream with which this stream will be connected. * @return The {@link ConnectedStreams}. */ public <R> ConnectedStreams<T, R> connect(DataStream<R> dataStream) { return new ConnectedStreams<>(environment, this, dataStream); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 using keySelector1 and keySelector2. * * @param keySelector1 * The {@link KeySelector} used for grouping the first input * @param keySelector2 * The {@link KeySelector} used for grouping the second input * @return The partitioned {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(KeySelector<IN1, ?> keySelector1, KeySelector<IN2, ?> keySelector2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keySelector1), inputStream2.keyBy(keySelector2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 according to keyPositions1 and keyPositions2. * * @param keyPositions1 * The fields used to group the first input stream. * @param keyPositions2 * The fields used to group the second input stream. * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(int[] keyPositions1, int[] keyPositions2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keyPositions1), inputStream2.keyBy(keyPositions2)); }
/** * KeyBy operation for connected data stream using key expressions. Assigns keys to * the elements of input1 and input2 according to field1 and field2. A field * expression is either the name of a public field or a getter method with * parentheses of the {@link DataStream}S underlying type. A dot can be used * to drill down into objects, as in {@code "field1.getInnerField2()" }. * * @param field1 * The grouping expression for the first input * @param field2 * The grouping expression for the second input * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(String field1, String field2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(field1), inputStream2.keyBy(field2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 according to keyPosition1 and keyPosition2. * * @param keyPosition1 * The field used to compute the hashcode of the elements in the * first input stream. * @param keyPosition2 * The field used to compute the hashcode of the elements in the * second input stream. * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(int keyPosition1, int keyPosition2) { return new ConnectedStreams<>(this.environment, inputStream1.keyBy(keyPosition1), inputStream2.keyBy(keyPosition2)); }
/** * KeyBy operation for connected data stream using key expressions. * the elements of input1 and input2 according to fields1 and fields2. A * field expression is either the name of a public field or a getter method * with parentheses of the {@link DataStream}S underlying type. A dot can be * used to drill down into objects, as in {@code "field1.getInnerField2()" } * . * * @param fields1 * The grouping expressions for the first input * @param fields2 * The grouping expressions for the second input * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(String[] fields1, String[] fields2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(fields1), inputStream2.keyBy(fields2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 using keySelector1 and keySelector2 with explicit type information * for the common key type. * * @param keySelector1 * The {@link KeySelector} used for grouping the first input * @param keySelector2 * The {@link KeySelector} used for grouping the second input * @param keyType The type information of the common key type. * @return The partitioned {@link ConnectedStreams} */ public <KEY> ConnectedStreams<IN1, IN2> keyBy( KeySelector<IN1, KEY> keySelector1, KeySelector<IN2, KEY> keySelector2, TypeInformation<KEY> keyType) { return new ConnectedStreams<>( environment, inputStream1.keyBy(keySelector1, keyType), inputStream2.keyBy(keySelector2, keyType)); }
/** * Creates a new {@link ConnectedStreams} by connecting * {@link DataStream} outputs of (possible) different types with each other. * The DataStreams connected using this operator can be used with * CoFunctions to apply joint transformations. * * @param dataStream * The DataStream with which this stream will be connected. * @return The {@link ConnectedStreams}. */ public <R> ConnectedStreams<T, R> connect(DataStream<R> dataStream) { return new ConnectedStreams<>(environment, this, dataStream); }
/** * Creates a new {@link ConnectedStreams} by connecting * {@link DataStream} outputs of (possible) different types with each other. * The DataStreams connected using this operator can be used with * CoFunctions to apply joint transformations. * * @param dataStream * The DataStream with which this stream will be connected. * @return The {@link ConnectedStreams}. */ public <R> ConnectedStreams<T, R> connect(DataStream<R> dataStream) { return new ConnectedStreams<>(environment, this, dataStream); }
/** * Creates a new {@link ConnectedStreams} by connecting * {@link DataStream} outputs of (possible) different types with each other. * The DataStreams connected using this operator can be used with * CoFunctions to apply joint transformations. * * @param dataStream * The DataStream with which this stream will be connected. * @return The {@link ConnectedStreams}. */ public <R> ConnectedStreams<T, R> connect(DataStream<R> dataStream) { return new ConnectedStreams<>(environment, this, dataStream); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 using keySelector1 and keySelector2. * * @param keySelector1 * The {@link KeySelector} used for grouping the first input * @param keySelector2 * The {@link KeySelector} used for grouping the second input * @return The partitioned {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(KeySelector<IN1, ?> keySelector1, KeySelector<IN2, ?> keySelector2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keySelector1), inputStream2.keyBy(keySelector2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 according to keyPositions1 and keyPositions2. * * @param keyPositions1 * The fields used to group the first input stream. * @param keyPositions2 * The fields used to group the second input stream. * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(int[] keyPositions1, int[] keyPositions2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keyPositions1), inputStream2.keyBy(keyPositions2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 according to keyPositions1 and keyPositions2. * * @param keyPositions1 * The fields used to group the first input stream. * @param keyPositions2 * The fields used to group the second input stream. * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(int[] keyPositions1, int[] keyPositions2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keyPositions1), inputStream2.keyBy(keyPositions2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 according to keyPosition1 and keyPosition2. * * @param keyPosition1 * The field used to compute the hashcode of the elements in the * first input stream. * @param keyPosition2 * The field used to compute the hashcode of the elements in the * second input stream. * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(int keyPosition1, int keyPosition2) { return new ConnectedStreams<>(this.environment, inputStream1.keyBy(keyPosition1), inputStream2.keyBy(keyPosition2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 according to keyPositions1 and keyPositions2. * * @param keyPositions1 * The fields used to group the first input stream. * @param keyPositions2 * The fields used to group the second input stream. * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(int[] keyPositions1, int[] keyPositions2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keyPositions1), inputStream2.keyBy(keyPositions2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 using keySelector1 and keySelector2. * * @param keySelector1 * The {@link KeySelector} used for grouping the first input * @param keySelector2 * The {@link KeySelector} used for grouping the second input * @return The partitioned {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(KeySelector<IN1, ?> keySelector1, KeySelector<IN2, ?> keySelector2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keySelector1), inputStream2.keyBy(keySelector2)); }
/** * KeyBy operation for connected data stream. Assigns keys to the elements of * input1 and input2 using keySelector1 and keySelector2. * * @param keySelector1 * The {@link KeySelector} used for grouping the first input * @param keySelector2 * The {@link KeySelector} used for grouping the second input * @return The partitioned {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(KeySelector<IN1, ?> keySelector1, KeySelector<IN2, ?> keySelector2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(keySelector1), inputStream2.keyBy(keySelector2)); }
/** * KeyBy operation for connected data stream using key expressions. Assigns keys to * the elements of input1 and input2 according to field1 and field2. A field * expression is either the name of a public field or a getter method with * parentheses of the {@link DataStream}S underlying type. A dot can be used * to drill down into objects, as in {@code "field1.getInnerField2()" }. * * @param field1 * The grouping expression for the first input * @param field2 * The grouping expression for the second input * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(String field1, String field2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(field1), inputStream2.keyBy(field2)); }
/** * KeyBy operation for connected data stream using key expressions. * the elements of input1 and input2 according to fields1 and fields2. A * field expression is either the name of a public field or a getter method * with parentheses of the {@link DataStream}S underlying type. A dot can be * used to drill down into objects, as in {@code "field1.getInnerField2()" } * . * * @param fields1 * The grouping expressions for the first input * @param fields2 * The grouping expressions for the second input * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(String[] fields1, String[] fields2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(fields1), inputStream2.keyBy(fields2)); }
/** * KeyBy operation for connected data stream using key expressions. Assigns keys to * the elements of input1 and input2 according to field1 and field2. A field * expression is either the name of a public field or a getter method with * parentheses of the {@link DataStream}S underlying type. A dot can be used * to drill down into objects, as in {@code "field1.getInnerField2()" }. * * @param field1 * The grouping expression for the first input * @param field2 * The grouping expression for the second input * @return The grouped {@link ConnectedStreams} */ public ConnectedStreams<IN1, IN2> keyBy(String field1, String field2) { return new ConnectedStreams<>(environment, inputStream1.keyBy(field1), inputStream2.keyBy(field2)); }