Record Class DistributionSnapshot
java.lang.Object
java.lang.Record
io.trino.execution.DistributionSnapshot
- All Implemented Interfaces:
Mergeable<DistributionSnapshot>,Metric<DistributionSnapshot>
public record DistributionSnapshot(long total, double min, double max, double p01, double p05, double p10, double p25, double p50, double p75, double p90, double p95, double p99)
extends Record
implements Metric<DistributionSnapshot>
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionSnapshot(long total, double min, double max, double p01, double p05, double p10, double p25, double p50, double p75, double p90, double p95, double p99) Creates an instance of aDistributionSnapshotrecord class.DistributionSnapshot(Distribution<?> distribution) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublemax()Returns the value of themaxrecord component.mergeWith(DistributionSnapshot other) doublemin()Returns the value of theminrecord component.doublep01()Returns the value of thep01record component.doublep05()Returns the value of thep05record component.doublep10()Returns the value of thep10record component.doublep25()Returns the value of thep25record component.doublep50()Returns the value of thep50record component.doublep75()Returns the value of thep75record component.doublep90()Returns the value of thep90record component.doublep95()Returns the value of thep95record component.doublep99()Returns the value of thep99record component.static OperatorStatspruneOperatorStats(OperatorStats operatorStats) static List<OperatorStats> pruneOperatorStats(List<OperatorStats> operatorStats) toString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
DistributionSnapshot
-
DistributionSnapshot
public DistributionSnapshot(long total, double min, double max, double p01, double p05, double p10, double p25, double p50, double p75, double p90, double p95, double p99) Creates an instance of aDistributionSnapshotrecord class.- Parameters:
total- the value for thetotalrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componentp01- the value for thep01record componentp05- the value for thep05record componentp10- the value for thep10record componentp25- the value for thep25record componentp50- the value for thep50record componentp75- the value for thep75record componentp90- the value for thep90record componentp95- the value for thep95record componentp99- the value for thep99record component
-
-
Method Details
-
pruneOperatorStats
-
pruneOperatorStats
-
toString
-
mergeWith
- Specified by:
mergeWithin interfaceMergeable<DistributionSnapshot>
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
min
public double min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public double max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
p01
public double p01()Returns the value of thep01record component.- Returns:
- the value of the
p01record component
-
p05
public double p05()Returns the value of thep05record component.- Returns:
- the value of the
p05record component
-
p10
public double p10()Returns the value of thep10record component.- Returns:
- the value of the
p10record component
-
p25
public double p25()Returns the value of thep25record component.- Returns:
- the value of the
p25record component
-
p50
public double p50()Returns the value of thep50record component.- Returns:
- the value of the
p50record component
-
p75
public double p75()Returns the value of thep75record component.- Returns:
- the value of the
p75record component
-
p90
public double p90()Returns the value of thep90record component.- Returns:
- the value of the
p90record component
-
p95
public double p95()Returns the value of thep95record component.- Returns:
- the value of the
p95record component
-
p99
public double p99()Returns the value of thep99record component.- Returns:
- the value of the
p99record component
-