Record Class ColumnarMetrics.Snapshot

java.lang.Object
java.lang.Record
io.krabka.streams.columnar.ColumnarMetrics.Snapshot
Record Components:
batches - how many logical partition batches were processed, including failed ones
inputRecords - how many records entered processing
outputRecords - how many records the topology produced
failures - how many partition batches failed
deadLetterRecords - how many records were forwarded to a dead-letter topic
processingNanos - total processing time in nanoseconds, excluding produce and commit time
Enclosing class:
ColumnarMetrics

public static record ColumnarMetrics.Snapshot(long batches, long inputRecords, long outputRecords, long failures, long deadLetterRecords, long processingNanos) extends Record
One point-in-time view of the counters.
  • Constructor Details

    • Snapshot

      public Snapshot(long batches, long inputRecords, long outputRecords, long failures, long deadLetterRecords, long processingNanos)
      Creates an instance of a Snapshot record class.
      Parameters:
      batches - the value for the batches record component
      inputRecords - the value for the inputRecords record component
      outputRecords - the value for the outputRecords record component
      failures - the value for the failures record component
      deadLetterRecords - the value for the deadLetterRecords record component
      processingNanos - the value for the processingNanos record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • batches

      public long batches()
      Returns the value of the batches record component.
      Returns:
      the value of the batches record component
    • inputRecords

      public long inputRecords()
      Returns the value of the inputRecords record component.
      Returns:
      the value of the inputRecords record component
    • outputRecords

      public long outputRecords()
      Returns the value of the outputRecords record component.
      Returns:
      the value of the outputRecords record component
    • failures

      public long failures()
      Returns the value of the failures record component.
      Returns:
      the value of the failures record component
    • deadLetterRecords

      public long deadLetterRecords()
      Returns the value of the deadLetterRecords record component.
      Returns:
      the value of the deadLetterRecords record component
    • processingNanos

      public long processingNanos()
      Returns the value of the processingNanos record component.
      Returns:
      the value of the processingNanos record component