@Internal public class PulsarSinkContextImpl extends Object implements PulsarSinkContext
| Constructor and Description |
|---|
PulsarSinkContextImpl(org.apache.flink.api.connector.sink2.Sink.InitContext initContext,
SinkConfiguration sinkConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfParallelInstances() |
int |
getParallelInstanceId()
Get the number of the subtask that PulsarSink is running on.
|
boolean |
isEnableSchemaEvolution()
Pulsar can check the schema and upgrade the schema automatically.
|
long |
processTime()
Returns the current process time in flink.
|
public PulsarSinkContextImpl(org.apache.flink.api.connector.sink2.Sink.InitContext initContext,
SinkConfiguration sinkConfiguration)
public int getParallelInstanceId()
PulsarSinkContextPulsarSinkContext.getNumberOfParallelInstances()getParallelInstanceId in interface PulsarSinkContextpublic int getNumberOfParallelInstances()
getNumberOfParallelInstances in interface PulsarSinkContextpublic boolean isEnableSchemaEvolution()
PulsarSinkContextisEnableSchemaEvolution in interface PulsarSinkContextpublic long processTime()
PulsarSinkContextprocessTime in interface PulsarSinkContextCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.