Class TopicPartitionOffset

java.lang.Object
org.apache.iceberg.connect.events.TopicPartitionOffset
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord

public class TopicPartitionOffset extends Object implements org.apache.avro.generic.IndexedRecord
Element representing an offset, with topic name, partition number, and offset.
  • Field Details

  • Constructor Details

    • TopicPartitionOffset

      public TopicPartitionOffset(org.apache.avro.Schema avroSchema)
    • TopicPartitionOffset

      public TopicPartitionOffset(String topic, int partition, Long offset, OffsetDateTime timestamp)
  • Method Details

    • topic

      public String topic()
    • partition

      public Integer partition()
    • offset

      public Long offset()
    • timestamp

      public OffsetDateTime timestamp()
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • put

      public void put(int i, Object v)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • get

      public Object get(int i)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord