public class RecordProcessorUtils extends Object
Input StreamOperator.| Modifier and Type | Method and Description |
|---|---|
static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,Exception> |
getRecordProcessor(Input<T> input)
Get record processor for
Input, which will omit call of Input.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 of
TwoInputStreamOperator, which will omit
call of StreamOperator.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 of
TwoInputStreamOperator, which will omit
call of StreamOperator.setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?>) if it doesn't have key context. |
public static <T> org.apache.flink.util.function.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 Inputpublic static <T> org.apache.flink.util.function.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 TwoInputStreamOperatorpublic static <T> org.apache.flink.util.function.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 TwoInputStreamOperatorCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.