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
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
ConstructorsConstructorDescriptionKafkaTopicPartitionState(KafkaTopicPartition partition, KPH kafkaPartitionHandle) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlongextractTimestamp(T record, long kafkaEventTimestamp) Deprecated.final longDeprecated.final KPHDeprecated.Gets Kafka's descriptor for the Kafka Partition.final KafkaTopicPartitionDeprecated.Gets Flink's descriptor for the Kafka Partition.final longDeprecated.The current offset in the partition.final intDeprecated.final StringgetTopic()Deprecated.final booleanDeprecated.voidDeprecated.voidDeprecated.final voidsetCommittedOffset(long offset) Deprecated.final voidsetOffset(long offset) Deprecated.toString()Deprecated.
-
Constructor Details
-
KafkaTopicPartitionState
Deprecated.
-
-
Method Details
-
getKafkaTopicPartition
Deprecated.Gets Flink's descriptor for the Kafka Partition.- Returns:
- The Flink partition descriptor.
-
getKafkaPartitionHandle
Deprecated.Gets Kafka's descriptor for the Kafka Partition.- Returns:
- The Kafka partition descriptor.
-
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
Deprecated. -
onEvent
Deprecated. -
onPeriodicEmit
public void onPeriodicEmit()Deprecated. -
toString
Deprecated.
-