|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.Distribution
public abstract class Distribution
A frequency distribution aggregated by the DTrace quantize()
or lquantize()
action. Each aggregated value falls into a
range known as a bucket and counts toward the frequency of that
bucket. Bucket ranges are consecutive, with the maximum of one
bucket's range always one less than the minimum of the next bucket's
range. By convention each bucket is identified by the minimum of its
range.
Nested Class Summary | |
---|---|
static class |
Distribution.Bucket
A range inclusive at both endpoints and a count of aggregated values that fall in that range. |
Method Summary | |
---|---|
java.util.List<Distribution.Bucket> |
asList()
Gets a read-only List view of this distribution. |
boolean |
equals(java.lang.Object o)
Compares the specified object with this Distribution
instance for equality. |
Distribution.Bucket |
get(int index)
Gets the bucket at the given distribution index (starting at zero). |
java.util.List<Distribution.Bucket> |
getBuckets()
Gets a modifiable list of this distribution's buckets ordered by bucket range. |
java.util.List<Distribution.Bucket> |
getDisplayRange()
Gets a list of buckets of interest by excluding empty buckets at both ends of the distribution. |
double |
getTotal()
Gets the total frequency across all buckets. |
abstract java.lang.Number |
getValue()
Gets the numeric value of this distribution used to compare distributions by overall magnitude, defined as the sum total of each bucket's frequency times the minimum of its range. |
int |
hashCode()
Overridden to ensure that equals instances have equal hash codes. |
java.util.Iterator<Distribution.Bucket> |
iterator()
Gets an iterator over the buckets of this distribution. |
int |
size()
Gets the number of buckets in this distribution. |
java.lang.String |
toString()
Gets a string representation of this Distribution useful
for logging and not intended for display. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.util.List<Distribution.Bucket> getBuckets()
public java.util.List<Distribution.Bucket> asList()
List
view of this distribution.
List
view of this distributionpublic int size()
public Distribution.Bucket get(int index)
public java.util.Iterator<Distribution.Bucket> iterator()
iterator
in interface java.lang.Iterable<Distribution.Bucket>
public boolean equals(java.lang.Object o)
Distribution
instance for equality. Defines equality as having the same
buckets with the same values.
equals
in class java.lang.Object
true
if and only if the specified object is of
type Distribution
and both instances have the same size
and equal buckets at corresponding distribution indexespublic int hashCode()
hashCode
in class java.lang.Object
public double getTotal()
public abstract java.lang.Number getValue()
getValue
in interface AggregationValue
public java.util.List<Distribution.Bucket> getDisplayRange()
public java.lang.String toString()
Distribution
useful
for logging and not intended for display. The exact details of
the representation are unspecified and subject to change, but the
following format may be regarded as typical:
class-name[property1 = value1, property2 = value2]
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |