Package com.tnsai.evaluation.autoharness
Record Class FailureCluster
java.lang.Object
java.lang.Record
com.tnsai.evaluation.autoharness.FailureCluster
- Record Components:
clusterKey- stable identifier for the root causecause- human-readable description of the root causecount- total number of failures in this clusterexamples- representative failure records (may be a subset)
public record FailureCluster(String clusterKey, String cause, int count, List<FailureRecord> examples)
extends Record
A group of
FailureRecords sharing a common root cause.
The clusterKey is a stable identifier for the root cause
(e.g. "NullPointerException:planning") used for deduplication and tracking.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionFailureCluster(String clusterKey, String cause, int count, List<FailureRecord> examples) Creates an instance of aFailureClusterrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.Returns the value of theclusterKeyrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.examples()Returns the value of theexamplesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FailureCluster
Creates an instance of aFailureClusterrecord class.- Parameters:
clusterKey- the value for theclusterKeyrecord componentcause- the value for thecauserecord componentcount- the value for thecountrecord componentexamples- the value for theexamplesrecord component
-
-
Method Details
-
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
clusterKey
Returns the value of theclusterKeyrecord component.- Returns:
- the value of the
clusterKeyrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
examples
Returns the value of theexamplesrecord component.- Returns:
- the value of the
examplesrecord component
-