FetchPartitionResponse class
Records and log positions returned for a single partition.
Constructors
-
FetchPartitionResponse(int partition, int errorCode, int highWatermark, int lastStableOffset, List<
KafkaRecord> records, {int? lastBatchOffset}) - Creates a partition result without interpreting its Kafka error code.
Properties
- errorCode → int
-
Kafka protocol error code;
0means success.final - hashCode → int
-
The hash code for this object.
no setterinherited
- highWatermark → int
-
Offset immediately after the last record replicated to the in-sync replicas.
final
- lastBatchOffset → int?
-
Inclusive final offset of the last fully validated returned record batch.
final
- lastStableOffset → int
-
First offset whose transaction status may be undecided, or
-1if unavailable.final - partition → int
-
Zero-based partition index.
final
-
records
→ List<
KafkaRecord> -
Decoded records with absolute offsets and epoch-millisecond timestamps.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a JSON-compatible summary; byte keys/values remain integer lists.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited