Class KafkaTopicPartitionState<T,KPH>
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartitionState<T,KPH>
-
- Type Parameters:
KPH- The type of the Kafka partition descriptor, which varies across Kafka versions.
- Direct Known Subclasses:
KafkaTopicPartitionStateWithWatermarkGenerator
@Internal @Deprecated public class KafkaTopicPartitionState<T,KPH> extends Object
Deprecated.The state that the Flink Kafka Consumer holds for each Kafka partition. Includes the Kafka descriptor for partitions.This class describes the most basic state (only the offset), subclasses define more elaborate state, containing current watermarks and timestamp extractors.
-
-
Constructor Summary
Constructors Constructor Description KafkaTopicPartitionState(KafkaTopicPartition partition, KPH kafkaPartitionHandle)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longextractTimestamp(T record, long kafkaEventTimestamp)Deprecated.longgetCommittedOffset()Deprecated.KPHgetKafkaPartitionHandle()Deprecated.Gets Kafka's descriptor for the Kafka Partition.KafkaTopicPartitiongetKafkaTopicPartition()Deprecated.Gets Flink's descriptor for the Kafka Partition.longgetOffset()Deprecated.The current offset in the partition.intgetPartition()Deprecated.StringgetTopic()Deprecated.booleanisOffsetDefined()Deprecated.voidonEvent(T event, long timestamp)Deprecated.voidonPeriodicEmit()Deprecated.voidsetCommittedOffset(long offset)Deprecated.voidsetOffset(long offset)Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
KafkaTopicPartitionState
public KafkaTopicPartitionState(KafkaTopicPartition partition, KPH kafkaPartitionHandle)
Deprecated.
-
-
Method Detail
-
getKafkaTopicPartition
public final KafkaTopicPartition getKafkaTopicPartition()
Deprecated.Gets Flink's descriptor for the Kafka Partition.- Returns:
- The Flink partition descriptor.
-
getKafkaPartitionHandle
public final KPH getKafkaPartitionHandle()
Deprecated.Gets Kafka's descriptor for the Kafka Partition.- Returns:
- The Kafka partition descriptor.
-
getTopic
public final String getTopic()
Deprecated.
-
getPartition
public final int getPartition()
Deprecated.
-
getOffset
public final long getOffset()
Deprecated.The current offset in the partition. This refers to the offset last element that we retrieved and emitted successfully. It is the offset that should be stored in a checkpoint.
-
setOffset
public final void setOffset(long offset)
Deprecated.
-
isOffsetDefined
public final boolean isOffsetDefined()
Deprecated.
-
setCommittedOffset
public final void setCommittedOffset(long offset)
Deprecated.
-
getCommittedOffset
public final long getCommittedOffset()
Deprecated.
-
extractTimestamp
public long extractTimestamp(T record, long kafkaEventTimestamp)
Deprecated.
-
onEvent
public void onEvent(T event, long timestamp)
Deprecated.
-
onPeriodicEmit
public void onPeriodicEmit()
Deprecated.
-
-