Class RecordProcessorUtils
- java.lang.Object
-
- org.apache.flink.streaming.runtime.io.RecordProcessorUtils
-
public class RecordProcessorUtils extends Object
Utility class for creating record processor forInputStreamOperator.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception>getRecordProcessor(Input<T> input)Get record processor forInput, which will omit call ofInput.setKeyContextElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>)if it doesn't have key context.static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception>getRecordProcessor1(TwoInputStreamOperator<T,?,?> operator)Get record processor for the first input ofTwoInputStreamOperator, which will omit call ofStreamOperator.setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>)if it doesn't have key context.static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception>getRecordProcessor2(TwoInputStreamOperator<?,T,?> operator)Get record processor for the second input ofTwoInputStreamOperator, which will omit call ofStreamOperator.setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>)if it doesn't have key context.
-
-
-
Method Detail
-
getRecordProcessor
public static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor(Input<T> input)
Get record processor forInput, which will omit call ofInput.setKeyContextElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>)if it doesn't have key context.- Parameters:
input- theInput- Returns:
- the record processor
-
getRecordProcessor1
public static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor1(TwoInputStreamOperator<T,?,?> operator)
Get record processor for the first input ofTwoInputStreamOperator, which will omit call ofStreamOperator.setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>)if it doesn't have key context.- Parameters:
operator- theTwoInputStreamOperator- Returns:
- the record processor
-
getRecordProcessor2
public static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor2(TwoInputStreamOperator<?,T,?> operator)
Get record processor for the second input ofTwoInputStreamOperator, which will omit call ofStreamOperator.setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>)if it doesn't have key context.- Parameters:
operator- theTwoInputStreamOperator- Returns:
- the record processor
-
-