Class TopicPartitionTimestamp
Represents a Kafka (topic, partition, timestamp) tuple.
Inheritance
Inherited Members
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.dll
Syntax
public class TopicPartitionTimestamp
Constructors
TopicPartitionTimestamp(TopicPartition, Timestamp)
Initializes a new TopicPartitionTimestamp instance.
Declaration
public TopicPartitionTimestamp(TopicPartition tp, Timestamp timestamp)
Parameters
Type | Name | Description |
---|---|---|
TopicPartition | tp | Kafka topic name and partition. |
Timestamp | timestamp | A Kafka timestamp value. |
TopicPartitionTimestamp(String, Int32, Timestamp)
Initializes a new TopicPartitionTimestamp instance.
Declaration
public TopicPartitionTimestamp(string topic, int partition, Timestamp timestamp)
Parameters
Type | Name | Description |
---|---|---|
System.String | topic | A Kafka topic name. |
System.Int32 | partition | A Kafka partition. |
Timestamp | timestamp | A Kafka timestamp value. |
Properties
Partition
Gets the Kafka partition.
Declaration
public int Partition { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Timestamp
Gets the Kafka timestamp.
Declaration
public Timestamp Timestamp { get; }
Property Value
Type | Description |
---|---|
Timestamp |
Topic
Gets the Kafka topic name.
Declaration
public string Topic { get; }
Property Value
Type | Description |
---|---|
System.String |
TopicPartition
Gets the TopicPartition component of this TopicPartitionTimestamp instance.
Declaration
public TopicPartition TopicPartition { get; }
Property Value
Type | Description |
---|---|
TopicPartition |
Methods
Equals(Object)
Tests whether this TopicPartitionTimestamp instance is equal to the specified object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to test. |
Returns
Type | Description |
---|---|
System.Boolean | true if obj is a TopicPartitionTimestamp and all properties are equal. false otherwise. |
Overrides
GetHashCode()
Returns a hash code for this TopicPartitionTimestamp.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | An integer that specifies a hash value for this TopicPartitionTimestamp. |
Overrides
ToString()
Returns a string representation of the TopicPartitionTimestamp object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the TopicPartitionTimestamp object. |
Overrides
Operators
Equality(TopicPartitionTimestamp, TopicPartitionTimestamp)
Tests whether TopicPartitionTimestamp instance a is equal to TopicPartitionTimestamp instance b.
Declaration
public static bool operator ==(TopicPartitionTimestamp a, TopicPartitionTimestamp b)
Parameters
Type | Name | Description |
---|---|---|
TopicPartitionTimestamp | a | The first TopicPartitionTimestamp instance to compare. |
TopicPartitionTimestamp | b | The second TopicPartitionTimestamp instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if TopicPartitionTimestamp instances a and b are equal. false otherwise. |
Inequality(TopicPartitionTimestamp, TopicPartitionTimestamp)
Tests whether TopicPartitionTimestamp instance a is not equal to TopicPartitionTimestamp instance b.
Declaration
public static bool operator !=(TopicPartitionTimestamp a, TopicPartitionTimestamp b)
Parameters
Type | Name | Description |
---|---|---|
TopicPartitionTimestamp | a | The first TopicPartitionTimestamp instance to compare. |
TopicPartitionTimestamp | b | The second TopicPartitionTimestamp instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if TopicPartitionTimestamp instances a and b are not equal. false otherwise. |