Class AggregateImpl
java.lang.Object
org.pentaho.aggdes.algorithm.impl.AggregateImpl
- All Implemented Interfaces:
Aggregate
Implementation of
Aggregate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns an estimate of the number of distinct values in this Aggregate.doubleReturns an estimate of the amount of space (in bytes) required to store this Aggregate.Returns a list of attributes in this aggregate table.Returns a suggestion for the name of a table in which to store this aggregate.Returns a text description of this aggregateReturns a list of measures in this aggregate table.booleanhasCompleteAncestors(List<BitSetPlus> ancestorClosure) Returns whether this Aggregate is closed with respect to ancestors.toString()
-
Constructor Details
-
AggregateImpl
-
-
Method Details
-
toString
-
getAttributes
Description copied from interface:AggregateReturns a list of attributes in this aggregate table.- Specified by:
getAttributesin interfaceAggregate- Returns:
- list of attributes in this aggregate table
-
getMeasures
Description copied from interface:AggregateReturns a list of measures in this aggregate table.- Specified by:
getMeasuresin interfaceAggregate- Returns:
- list of measures in this aggregate table
-
estimateRowCount
public double estimateRowCount()Description copied from interface:AggregateReturns an estimate of the number of distinct values in this Aggregate.- Specified by:
estimateRowCountin interfaceAggregate- Returns:
- estimated number of distinct values
-
estimateSpace
public double estimateSpace()Description copied from interface:AggregateReturns an estimate of the amount of space (in bytes) required to store this Aggregate.- Specified by:
estimateSpacein interfaceAggregate- Returns:
- estimated space in bytes
-
getDescription
Description copied from interface:AggregateReturns a text description of this aggregate- Specified by:
getDescriptionin interfaceAggregate- Returns:
- description of aggregate
-
getCandidateTableName
Description copied from interface:AggregateReturns a suggestion for the name of a table in which to store this aggregate.The suggestion does not need to be unique within the db schema or less than the database's table name limit, but the implementation should try to generate a name that is likely to be unique and descriptive in the first 20 or so characters.
- Specified by:
getCandidateTableNamein interfaceAggregate- Returns:
- candidate table name
-
hasCompleteAncestors
Returns whether this Aggregate is closed with respect to ancestors. If it contains an attribute but does not contain all of the ancestors of that attribute (seeAttribute.getAncestorAttributes()), return false.- Parameters:
ancestorClosure- List containing, for each attribute ordinal, the ordinals of the ancestors of that attribute, and all of their ancestors, and so forth- Returns:
- whether this Aggegate is closed with respect to ancestors
-