public class RecordProcessorUtils extends Object
Input
StreamOperator
.public static <T> ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor(Input<T> input)
Input
, which will omit call of Input.setKeyContextElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>)
if it doesn't have key context.input
- the Input
public static <T> ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor1(TwoInputStreamOperator<T,?,?> operator)
TwoInputStreamOperator
, which will omit
call of StreamOperator.setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>)
if it doesn't have key context.operator
- the TwoInputStreamOperator
public static <T> ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor2(TwoInputStreamOperator<?,T,?> operator)
TwoInputStreamOperator
, which will omit
call of StreamOperator.setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>)
if it doesn't have key context.operator
- the TwoInputStreamOperator
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.