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| 构造器和说明 |
|---|
CollectSinkOperator(org.apache.flink.api.common.typeutils.TypeSerializer<IN> serializer,
long maxBytesPerBatch,
String accumulatorName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
This method is called at the very end of the operator's life, both in the case of a
successful completion of the operation, and in the case of a failure and canceling.
|
CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> |
getOperatorIdFuture() |
void |
handleOperatorEvent(org.apache.flink.runtime.operators.coordination.OperatorEvent evt) |
open, processElement, processWatermark, reportOrForwardLatencyMarkerfinish, 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, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, registerCounterOnOutput, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementfinish, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyprocessLatencyMarker, processWatermarkStatuspublic void handleOperatorEvent(org.apache.flink.runtime.operators.coordination.OperatorEvent evt)
handleOperatorEvent 在接口中 org.apache.flink.runtime.operators.coordination.OperatorEventHandlerpublic void close()
throws Exception
StreamOperatorThis method is expected to make a thorough effort to release all resources that the operator has acquired.
NOTE:It can not emit any records! If you need to emit records at the end of
processing, do so in the StreamOperator.finish() method.
close 在接口中 StreamOperator<Object>close 在类中 AbstractUdfStreamOperator<Object,SinkFunction<IN>>Exceptionpublic CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> getOperatorIdFuture()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.