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.
|
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, waitinvokepublic OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic 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–2022 The Apache Software Foundation. All rights reserved.