|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.metadata.AdditiveAggregation
public class AdditiveAggregation
Manage number columns that are additive from the leaves to the root, as required by treemaps.
| Nested Class Summary | |
|---|---|
static class |
AdditiveAggregation.NonAdditiveFilter
ColumnFilter to filter out columns that are non additive. |
| Field Summary | |
|---|---|
static String |
ADDEDDEGREE_COLUMN
Name of the column containing the Additive degree of a tree. |
static AdditiveAggregation |
instance
The instance. |
| Fields inherited from interface infovis.metadata.AggregationConstants |
|---|
AGGREGATE_COMPATIBLE, AGGREGATE_NO, AGGREGATE_YES, AGGREGATION_TYPE, AGGREGATION_TYPE_ADDITIVE, AGGREGATION_TYPE_ATLEAF, AGGREGATION_TYPE_CONCAT, AGGREGATION_TYPE_MAX, AGGREGATION_TYPE_MEAN, AGGREGATION_TYPE_MIN, AGGREGATION_TYPE_NONE |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Constructor Summary | |
|---|---|
AdditiveAggregation()
|
|
| Method Summary | |
|---|---|
Column |
aggregate(Column src,
Tree tree,
Column dst)
Computes the aggregation values of the specified source column into the destination column. |
static short |
analyzeAdditiveWeight(NumberColumn col,
Tree tree)
Checks whether a NumberColumn is a valid sizeColumn. |
static NumberColumn |
buildAdditiveWeight(NumberColumn src,
Tree tree,
DoubleFunction fn,
RowDoubleValueGenerator gen,
NumberColumn dst)
Creates a NumberColumn to be a valid sizeColumn by computing the sum of the leave and undefining non leaf nodes. |
static AdditiveAggregation |
getInstance()
Returns the instance of AdditiveAggregation. |
String |
getType()
Returns the type name of the aggregation. |
static short |
isAdditive(NumberColumn col,
Tree tree)
Returns whether a NumberColumn is a valid sizeColumn. |
boolean |
isAggregating(Column col,
Tree tree)
Checks whether a column is aggregating following the class aggregation scheme. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AdditiveAggregation instance
public static final String ADDEDDEGREE_COLUMN
| Constructor Detail |
|---|
public AdditiveAggregation()
| Method Detail |
|---|
public static AdditiveAggregation getInstance()
public boolean isAggregating(Column col,
Tree tree)
isAggregating in interface Aggregationcol - the columntree - the tree
true if the column follows the aggregation
scheme, false otherwise.
public Column aggregate(Column src,
Tree tree,
Column dst)
aggregate in interface Aggregationsrc - the source columntree - the treedst - the destination column
public String getType()
getType in interface Aggregation
public static short isAdditive(NumberColumn col,
Tree tree)
col - the NumberColumntree - the Tree.
AGGREGATE_YES if the NumberColumn is a valid
sizeColumn, AGGREGATE_NO if the column is not a
valid sizeColumn and cannot be turned into one, and
AGGREGATE_COMPATIBLE otherwise.
public static short analyzeAdditiveWeight(NumberColumn col,
Tree tree)
col - the NumberColumntree - the Tree.
ADDITIVE_YES if the NumberColumn is a valid
sizeColumn, ADDITIVE_NO if the column is not a
valid sizeColumn and cannot be turned into one, and
ADDITIVE_COMPATIBLE otherwise.
public static NumberColumn buildAdditiveWeight(NumberColumn src,
Tree tree,
DoubleFunction fn,
RowDoubleValueGenerator gen,
NumberColumn dst)
WeightBuilder and transformed through a function.
src - the source NumberColumn.tree - the tree.fn - the transforming function.gen - the generator for undefined valuesdst - the destination column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||