Class VeniceRawPubsubStats
java.lang.Object
com.linkedin.venice.spark.input.pubsub.raw.VeniceRawPubsubStats
Encapsulates statistics for the Venice Raw Pubsub Input Partition Reader.
Tracks metrics about record processing during partition reading.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new stats object with zero-initialized metrics.VeniceRawPubsubStats
(long recordsServed, long recordsSkipped, long recordsDeliveredByGet) Creates a new stats object with the given metrics. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
void
Increments the count of records delivered by get() by 1.void
Increments the count of records served by 1.void
Increments the count of records skipped by 1.toString()
-
Constructor Details
-
VeniceRawPubsubStats
public VeniceRawPubsubStats()Creates a new stats object with zero-initialized metrics. -
VeniceRawPubsubStats
public VeniceRawPubsubStats(long recordsServed, long recordsSkipped, long recordsDeliveredByGet) Creates a new stats object with the given metrics.- Parameters:
recordsServed
- The number of records successfully servedrecordsSkipped
- The number of records skipped (e.g., control messages)recordsDeliveredByGet
- The number of times the get() method was called
-
-
Method Details
-
getRecordsServed
public long getRecordsServed()- Returns:
- The number of records successfully served
-
getRecordsSkipped
public long getRecordsSkipped()- Returns:
- The number of records skipped (e.g., control messages)
-
getRecordsDeliveredByGet
public long getRecordsDeliveredByGet()- Returns:
- The number of times the get() method was called
-
incrementRecordsServed
public void incrementRecordsServed()Increments the count of records served by 1. -
incrementRecordsSkipped
public void incrementRecordsSkipped()Increments the count of records skipped by 1. -
incrementRecordsDeliveredByGet
public void incrementRecordsDeliveredByGet()Increments the count of records delivered by get() by 1. -
toString
-