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 java.lang.Object implements org.apache.avro.generic.IndexedRecordElement representing an offset, with topic name, partition number, and offset.
-
-
Field Summary
Fields Modifier and Type Field Description static Types.StructTypeICEBERG_SCHEMA
-
Constructor Summary
Constructors Constructor Description TopicPartitionOffset(java.lang.String topic, int partition, java.lang.Long offset, java.time.OffsetDateTime timestamp)TopicPartitionOffset(org.apache.avro.Schema avroSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(int i)org.apache.avro.SchemagetSchema()java.lang.Longoffset()java.lang.Integerpartition()voidput(int i, java.lang.Object v)java.time.OffsetDateTimetimestamp()java.lang.Stringtopic()
-
-
-
Field Detail
-
ICEBERG_SCHEMA
public static final Types.StructType ICEBERG_SCHEMA
-
-
Method Detail
-
topic
public java.lang.String topic()
-
partition
public java.lang.Integer partition()
-
offset
public java.lang.Long offset()
-
timestamp
public java.time.OffsetDateTime timestamp()
-
getSchema
public org.apache.avro.Schema getSchema()
- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
put
public void put(int i, java.lang.Object v)- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
get
public java.lang.Object get(int i)
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
-