|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.quantize.Quantize
public final class Quantize
Create a value or frequency distribution out of arbitrary values.
Nested Class Summary | |
---|---|
static class |
Quantize.Builder
Quantize factory |
static interface |
Quantize.Function
A function used to aggregate values into one bucket, e.g. |
Field Summary | |
---|---|
static Quantize.Function.Factory |
AVERAGE
Function to find the average value. |
static Quantize.Function.Factory |
AVERAGE_LONG
Function to find the average long value. |
static Quantize.Function.Factory |
COUNT
Function to count values. |
static Quantize.Function.Factory |
MAX
Function to find the maximum double value. |
static Quantize.Function.Factory |
MAX_LONG
Function to find the maximum long value. |
static Quantize.Function.Factory |
MIN
Function to find the minimum double value. |
static Quantize.Function.Factory |
MIN_LONG
Function to find the minimum long value. |
static Quantize.Function.Factory |
SUM
Function to add values as doubles. |
static Quantize.Function.Factory |
SUM_LONG
Function to add values as longs. |
Method Summary | |
---|---|
void |
addValue(int[] objectIds,
Object... columnValues)
Add one value to the quantize function representing a set of objects. |
void |
addValue(int objectId,
Object... columnValues)
Add one value to the quantize function representing one heap object. |
IResult |
getResult()
Returns the IResult build by the Quantize object. |
static Quantize.Builder |
linearFrequencyDistribution(String label,
double lowerBound,
double upperBound,
double step)
Creates a quantize Quantize.Builder for a linear frequency distribution on
double values. |
static Quantize.Builder |
linearFrequencyDistribution(String label,
long lowerBound,
long upperBound,
long step)
Creates a quantize Quantize.Builder for a linear frequency distribution on
long values. |
static Quantize.Builder |
valueDistribution(Column... column)
Creates a quantize Quantize.Builder for a value distribution, i.e. |
static Quantize.Builder |
valueDistribution(String... label)
Creates a quantize Quantize.Builder for a value distribution, i.e. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Quantize.Function.Factory COUNT
public static final Quantize.Function.Factory SUM
public static final Quantize.Function.Factory SUM_LONG
public static final Quantize.Function.Factory MIN
public static final Quantize.Function.Factory MIN_LONG
public static final Quantize.Function.Factory MAX
public static final Quantize.Function.Factory MAX_LONG
public static final Quantize.Function.Factory AVERAGE
public static final Quantize.Function.Factory AVERAGE_LONG
Method Detail |
---|
public static Quantize.Builder valueDistribution(String... label)
Quantize.Builder
for a value distribution, i.e. rows
are grouped by identical values. Rows can be grouped by one ore more
values.
public static Quantize.Builder valueDistribution(Column... column)
Quantize.Builder
for a value distribution, i.e. rows
are grouped by identical values. Rows can be grouped by one ore more
values. This constructor uses the given columns and their formatting and
alignment to display the results.
public static Quantize.Builder linearFrequencyDistribution(String label, double lowerBound, double upperBound, double step)
Quantize.Builder
for a linear frequency distribution on
double values.
Basically, one can answer questions like how many collections have a fill ratio between 0 and 20%, between 20% and 40%, etc.
label
- Name of the first columnlowerBound
- The lower bound of the distributionupperBound
- The upper bound of the distributionstep
- The size of the buckets in the distributionpublic static Quantize.Builder linearFrequencyDistribution(String label, long lowerBound, long upperBound, long step)
Quantize.Builder
for a linear frequency distribution on
long values.
linearFrequencyDistribution(String, double, double, double)
public void addValue(int objectId, Object... columnValues) throws SnapshotException
objectId
- the heap object represented by this valuecolumnValues
- the column values
SnapshotException
public void addValue(int[] objectIds, Object... columnValues) throws SnapshotException
objectIds
- the heap objects represented by this valuecolumnValues
- the column values
SnapshotException
public IResult getResult()
IResult
build by the Quantize object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |