T - The type of records handled by the watermark generator@Internal public final class PulsarTopicPartitionStateWithWatermarkGenerator<T> extends PulsarTopicState<T>
TimestampAssigner, WatermarkGenerator, an immediate WatermarkOutput, and a
deferred WatermarkOutput for this partition.
See WatermarkOutputMultiplexer for an
explanation
of immediate and deferred WatermarkOutputs..
| Constructor and Description |
|---|
PulsarTopicPartitionStateWithWatermarkGenerator(TopicRange topicRange,
PulsarTopicState<T> topicState,
org.apache.flink.api.common.eventtime.TimestampAssigner<T> timestampAssigner,
org.apache.flink.api.common.eventtime.WatermarkGenerator<T> watermarkGenerator,
org.apache.flink.api.common.eventtime.WatermarkOutput immediateOutput,
org.apache.flink.api.common.eventtime.WatermarkOutput deferredOutput) |
| Modifier and Type | Method and Description |
|---|---|
long |
extractTimestamp(T record,
long pulsarEventTimestamp) |
void |
onEvent(T event,
long timestamp) |
void |
onPeriodicEmit() |
String |
toString() |
getCommittedOffset, isOffsetDefined, setCommittedOffsetpublic PulsarTopicPartitionStateWithWatermarkGenerator(TopicRange topicRange, PulsarTopicState<T> topicState, org.apache.flink.api.common.eventtime.TimestampAssigner<T> timestampAssigner, org.apache.flink.api.common.eventtime.WatermarkGenerator<T> watermarkGenerator, org.apache.flink.api.common.eventtime.WatermarkOutput immediateOutput, org.apache.flink.api.common.eventtime.WatermarkOutput deferredOutput)
public long extractTimestamp(T record, long pulsarEventTimestamp)
extractTimestamp in class PulsarTopicState<T>public void onEvent(T event, long timestamp)
onEvent in class PulsarTopicState<T>public void onPeriodicEmit()
onPeriodicEmit in class PulsarTopicState<T>public String toString()
toString in class PulsarTopicState<T>Copyright © 2019–2022 The Apache Software Foundation. All rights reserved.