/** * Specifies the function to derive a value from the * {@link ReduceStateByKey} operator's input elements to get * accumulated by a later supplied state implementation. * * @param <VALUE> the type of the extracted values * * @param valueExtractor a user defined function to extract values from the * processed input dataset's elements for later * accumulation * * @return the next builder to complete the setup of the * {@link ReduceStateByKey} operator */ public <VALUE> DatasetBuilder3<IN, KEY, VALUE> valueBy(UnaryFunction<IN, VALUE> valueExtractor) { return new DatasetBuilder3<>(name, input, keyExtractor, valueExtractor); } }
/** * Specifies the function to derive a value from the * {@link ReduceStateByKey} operator's input elements to get * accumulated by a later supplied state implementation. * * @param <VALUE> the type of the extracted values * * @param valueExtractor a user defined function to extract values from the * processed input dataset's elements for later * accumulation * * @return the next builder to complete the setup of the * {@link ReduceStateByKey} operator */ public <VALUE> DatasetBuilder3<IN, KEY, VALUE> valueBy(UnaryFunction<IN, VALUE> valueExtractor) { return new DatasetBuilder3<>(name, input, keyExtractor, valueExtractor); } }