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| Constructor and Description |
|---|
OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
org.apache.flink.api.common.io.OutputFormat<IN> |
getFormat()
Deprecated.
|
void |
invoke(IN record)
Deprecated.
|
void |
open(org.apache.flink.configuration.Configuration parameters)
Deprecated.
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)
Deprecated.
|
void |
setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext context)
Deprecated.
|
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 in interface org.apache.flink.api.common.functions.RichFunctionopen in class 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 in interface org.apache.flink.api.common.functions.RichFunctionsetRuntimeContext in class 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 in interface org.apache.flink.api.java.typeutils.InputTypeConfigurablepublic void invoke(IN record) throws Exception
invoke in interface SinkFunction<IN>Exceptionpublic void close()
throws IOException
close in interface org.apache.flink.api.common.functions.RichFunctionclose in class org.apache.flink.api.common.functions.AbstractRichFunctionIOExceptionpublic org.apache.flink.api.common.io.OutputFormat<IN> getFormat()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.