IN - Input record typePrintSink
interface instead.@Deprecated @PublicEvolving public class PrintSinkFunction<IN> extends RichSinkFunction<IN> implements org.apache.flink.api.common.SupportsConcurrentExecutionAttempts
Four possible format options: sinkIdentifier:taskId> output <- sinkIdentifier
provided, parallelism > 1 sinkIdentifier> output <- sinkIdentifier provided,
parallelism == 1 taskId> output <- no sinkIdentifier provided, parallelism > 1 output <-
no sinkIdentifier provided, parallelism == 1
SinkFunction.Context| 构造器和说明 |
|---|
PrintSinkFunction()
已过时。
Instantiates a print sink function that prints to standard out.
|
PrintSinkFunction(boolean stdErr)
已过时。
Instantiates a print sink function that prints to standard out.
|
PrintSinkFunction(String sinkIdentifier,
boolean stdErr)
已过时。
Instantiates a print sink function that prints to standard out and gives a sink identifier.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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). |
String |
toString()
已过时。
|
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinish, invoke, writeWatermarkpublic PrintSinkFunction()
public PrintSinkFunction(boolean stdErr)
stdErr - True, if the format should print to standard error instead of standard out.public PrintSinkFunction(String sinkIdentifier, boolean stdErr)
stdErr - True, if the format should print to standard error instead of standard out.sinkIdentifier - Message that identify sink and is prefixed to the output of the value@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).PrintSinkFunction.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 invoke(IN record)
invoke 在接口中 SinkFunction<IN>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.