Class RecordProcessorUtils
java.lang.Object
org.apache.flink.streaming.runtime.io.RecordProcessorUtils
Utility class for creating record processor for
Input StreamOperator.-
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Details
-
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
-