IN - Input typeStreamingFileSink
for writing to files from a streaming program.@PublicEvolving @Deprecated public class OutputFormatSinkFunction<IN> extends RichSinkFunction<IN> implements org.apache.flink.api.java.typeutils.InputTypeConfigurable
SinkFunction.Context| 构造器和说明 |
|---|
OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
已过时。
|
org.apache.flink.api.common.io.OutputFormat<IN> |
getFormat()
已过时。
|
void |
invoke(IN record)
已过时。
|
void |
open(org.apache.flink.configuration.Configuration parameters)
已过时。
This method is deprecated since Flink 1.19. The users are recommended to
implement
open(OpenContext openContext) and override open(Configuration
parameters) with an empty body instead. 1. If you implement open(OpenContext
openContext), the open(OpenContext openContext) will be invoked and the open(Configuration parameters) won't be invoked. 2. If you don't implement open(OpenContext openContext), the open(Configuration parameters) will be
invoked in the default implementation of the open(OpenContext openContext). |
void |
setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type,
org.apache.flink.api.common.ExecutionConfig executionConfig)
已过时。
|
void |
setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext context)
已过时。
|
getIterationRuntimeContext, getRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, invoke, writeWatermarkpublic OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)
@Deprecated public void open(org.apache.flink.configuration.Configuration parameters) throws Exception
open(OpenContext openContext) and override open(Configuration
parameters) with an empty body instead. 1. If you implement open(OpenContext
openContext), the open(OpenContext openContext) will be invoked and the open(Configuration parameters) won't be invoked. 2. If you don't implement open(OpenContext openContext), the open(Configuration parameters) will be
invoked in the default implementation of the open(OpenContext openContext).OutputFormatSinkFunction.open 在接口中 org.apache.flink.api.common.functions.RichFunctionopen 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionparameters - The configuration containing the parameters attached to the contract.Exception - if an error happens.public void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext context)
setRuntimeContext 在接口中 org.apache.flink.api.common.functions.RichFunctionsetRuntimeContext 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionpublic void setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type,
org.apache.flink.api.common.ExecutionConfig executionConfig)
setInputType 在接口中 org.apache.flink.api.java.typeutils.InputTypeConfigurablepublic void invoke(IN record) throws Exception
invoke 在接口中 SinkFunction<IN>Exceptionpublic void close()
throws IOException
close 在接口中 org.apache.flink.api.common.functions.RichFunctionclose 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionIOExceptionpublic org.apache.flink.api.common.io.OutputFormat<IN> getFormat()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.