IN
- Input record typePrintSink
interface instead.@Deprecated @PublicEvolving public class PrintSinkFunction<IN> extends RichSinkFunction<IN> implements 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
Constructor and Description |
---|
PrintSinkFunction()
Deprecated.
Instantiates a print sink function that prints to standard out.
|
PrintSinkFunction(boolean stdErr)
Deprecated.
Instantiates a print sink function that prints to standard out.
|
PrintSinkFunction(String sinkIdentifier,
boolean stdErr)
Deprecated.
Instantiates a print sink function that prints to standard out and gives a sink identifier.
|
Modifier and Type | Method and Description |
---|---|
void |
invoke(IN record)
Deprecated.
|
void |
open(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) . |
String |
toString()
Deprecated.
|
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
finish, invoke, writeWatermark
open
public 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(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
in interface RichFunction
open
in class AbstractRichFunction
parameters
- The configuration containing the parameters attached to the contract.Exception
- if an error happens.public void invoke(IN record)
invoke
in interface SinkFunction<IN>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.