Class TwoInputStreamTask<IN1,IN2,OUT>
java.lang.Object
org.apache.flink.streaming.runtime.tasks.StreamTask<OUT,TwoInputStreamOperator<IN1,IN2,OUT>>
org.apache.flink.streaming.runtime.tasks.AbstractTwoInputStreamTask<IN1,IN2,OUT>
org.apache.flink.streaming.runtime.tasks.TwoInputStreamTask<IN1,IN2,OUT>
- All Implemented Interfaces:
CheckpointableTask,CoordinatedTask,TaskInvokable,AsyncExceptionHandler,ContainingTaskDetails
@Internal
public class TwoInputStreamTask<IN1,IN2,OUT>
extends AbstractTwoInputStreamTask<IN1,IN2,OUT>
A
StreamTask for executing a TwoInputStreamOperator and supporting the TwoInputStreamOperator to select input for reading.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
StreamTask.CanEmitBatchOfRecordsChecker -
Field Summary
Fields inherited from class org.apache.flink.streaming.runtime.tasks.AbstractTwoInputStreamTask
input1WatermarkGauge, input2WatermarkGauge, minInputWatermarkGaugeFields inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
checkpointStorage, configuration, inputProcessor, LOG, mailboxProcessor, mainOperator, operatorChain, recordWriter, stateBackend, systemTimerService, timerService, TRIGGER_THREAD_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateInputProcessor(List<IndexedInputGate> inputGates1, List<IndexedInputGate> inputGates2, Function<Integer, StreamPartitioner<?>> gatePartitioners) protected Optional<CheckpointBarrierHandler>Acquires the optionalCheckpointBarrierHandlerassociated with this stream task.Methods inherited from class org.apache.flink.streaming.runtime.tasks.AbstractTwoInputStreamTask
initMethods inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
abortCheckpointOnBarrier, advanceToEndOfEventTime, afterInvoke, cancel, cancelTask, cleanUp, cleanUpInternal, createRecordWriterDelegate, createStreamTaskStateInitializer, declineCheckpoint, dispatchOperatorEvent, endData, finalize, getAsyncCheckpointStartDelayNanos, getAsyncOperationsThreadPool, getCancelables, getCheckpointStorage, getCompletionFuture, getConfiguration, getEnvironment, getMailboxExecutorFactory, getName, getProcessingTimeServiceFactory, handleAsyncException, hasMail, invoke, isCanceled, isFailing, isMailboxLoopRunning, isRunning, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, notifyCheckpointSubsumedAsync, notifyEndOfData, processInput, restore, runMailboxLoop, runMailboxStep, runSingleMailboxLoop, setSynchronousSavepoint, setupNumRecordsInCounter, toString, triggerCheckpointAsync, triggerCheckpointOnBarrierMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.runtime.tasks.ContainingTaskDetails
getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getUserCodeClassLoader
-
Constructor Details
-
TwoInputStreamTask
- Throws:
Exception
-
-
Method Details
-
getCheckpointBarrierHandler
Description copied from class:StreamTaskAcquires the optionalCheckpointBarrierHandlerassociated with this stream task. TheCheckpointBarrierHandlershould exist if the task has data inputs and requires to align the barriers.- Overrides:
getCheckpointBarrierHandlerin classStreamTask<OUT,TwoInputStreamOperator<IN1, IN2, OUT>>
-
createInputProcessor
protected void createInputProcessor(List<IndexedInputGate> inputGates1, List<IndexedInputGate> inputGates2, Function<Integer, StreamPartitioner<?>> gatePartitioners) - Specified by:
createInputProcessorin classAbstractTwoInputStreamTask<IN1,IN2, OUT>
-
getCanEmitBatchOfRecords
- Overrides:
getCanEmitBatchOfRecordsin classStreamTask<OUT,TwoInputStreamOperator<IN1, IN2, OUT>>
-