Record Class StreamFlattenMetrics
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.StreamFlattenMetrics
public record StreamFlattenMetrics(Map<String,StreamFlattenMetrics.StreamMetric> streamMetrics, Map<org.apache.commons.lang3.tuple.Pair<String,String>,StreamFlattenMetrics.ComputationMetric> computationMetrics, Map<String,StreamFlattenMetrics.NodeMetric> nodeMetrics, Instant date)
extends Record
- Since:
- 2025.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStreamFlattenMetrics(Map<String, StreamFlattenMetrics.StreamMetric> streamMetrics, Map<org.apache.commons.lang3.tuple.Pair<String, String>, StreamFlattenMetrics.ComputationMetric> computationMetrics, Map<String, StreamFlattenMetrics.NodeMetric> nodeMetrics, Instant date) Creates an instance of aStreamFlattenMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomputationMetric(String nodeId, String computationName) Map<org.apache.commons.lang3.tuple.Pair<String,String>, StreamFlattenMetrics.ComputationMetric> Returns the value of thecomputationMetricsrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenodeMetricsrecord component.streamMetric(String streamName) Returns the value of thestreamMetricsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamFlattenMetrics
public StreamFlattenMetrics(Map<String, StreamFlattenMetrics.StreamMetric> streamMetrics, Map<org.apache.commons.lang3.tuple.Pair<String, String>, StreamFlattenMetrics.ComputationMetric> computationMetrics, Map<String, StreamFlattenMetrics.NodeMetric> nodeMetrics, Instant date) Creates an instance of aStreamFlattenMetricsrecord class.- Parameters:
streamMetrics- the value for thestreamMetricsrecord componentcomputationMetrics- the value for thecomputationMetricsrecord componentnodeMetrics- the value for thenodeMetricsrecord componentdate- the value for thedaterecord component
-
-
Method Details
-
streamMetric
-
computationMetric
@Nullable public StreamFlattenMetrics.ComputationMetric computationMetric(String nodeId, String computationName) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
streamMetrics
Returns the value of thestreamMetricsrecord component.- Returns:
- the value of the
streamMetricsrecord component
-
computationMetrics
public Map<org.apache.commons.lang3.tuple.Pair<String,String>, computationMetrics()StreamFlattenMetrics.ComputationMetric> Returns the value of thecomputationMetricsrecord component.- Returns:
- the value of the
computationMetricsrecord component
-
nodeMetrics
Returns the value of thenodeMetricsrecord component.- Returns:
- the value of the
nodeMetricsrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-