IN - type of results to be written into the sink.public class CollectSinkOperator<IN> extends StreamSink<IN> implements org.apache.flink.runtime.operators.coordination.OperatorEventHandler
StreamSink that collects query results and sends them back to the client.userFunctionchainingStrategy, config, latencyStats, LOG, metrics, output, processingTimeService| Constructor and Description |
|---|
CollectSinkOperator(org.apache.flink.api.common.typeutils.TypeSerializer<IN> serializer,
long maxBytesPerBatch,
String accumulatorName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called after all records have been added to the operators via the methods
Input.processElement(StreamRecord), or TwoInputStreamOperator.processElement1(StreamRecord) and TwoInputStreamOperator.processElement2(StreamRecord). |
CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> |
getOperatorIdFuture() |
void |
handleOperatorEvent(org.apache.flink.runtime.operators.coordination.OperatorEvent evt) |
open, processElement, processWatermark, reportOrForwardLatencyMarkerdispose, getUserFunction, getUserFunctionParameters, initializeState, notifyCheckpointAborted, notifyCheckpointComplete, setOutputType, setup, snapshotStategetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, isUsingCustomRawKeyedState, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementdispose, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyprocessLatencyMarkerpublic void handleOperatorEvent(org.apache.flink.runtime.operators.coordination.OperatorEvent evt)
handleOperatorEvent in interface org.apache.flink.runtime.operators.coordination.OperatorEventHandlerpublic void close()
throws Exception
AbstractStreamOperatorInput.processElement(StreamRecord), or TwoInputStreamOperator.processElement1(StreamRecord) and TwoInputStreamOperator.processElement2(StreamRecord).
The method is expected to flush all remaining buffered data. Exceptions during this flushing of buffered should be propagated, in order to cause the operation to be recognized asa failed, because the last data items are not processed properly.
close in interface StreamOperator<Object>close in class AbstractUdfStreamOperator<Object,SinkFunction<IN>>Exception - An exception in this method causes the operator to fail.public CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> getOperatorIdFuture()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.