Package org.teiid.metadata
Class AggregateAttributes
- java.lang.Object
-
- org.teiid.metadata.AggregateAttributes
-
- All Implemented Interfaces:
Serializable
public class AggregateAttributes extends Object implements Serializable
Holds metadata related to user defined aggregate functions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregateAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsDistinct()booleanallowsOrderBy()booleanisAnalytic()booleanisDecomposable()voidsetAllowsDistinct(boolean allowsDistinct)voidsetAllowsOrderBy(boolean allowsOrderBy)voidsetAnalytic(boolean analytic)voidsetDecomposable(boolean decomposable)voidsetUsesDistinctRows(boolean usesDistinctRows)booleanusesDistinctRows()
-
-
-
Method Detail
-
allowsOrderBy
public boolean allowsOrderBy()
- Returns:
- true if the aggregate allows an order by clause
-
setAllowsOrderBy
public void setAllowsOrderBy(boolean allowsOrderBy)
-
isAnalytic
public boolean isAnalytic()
- Returns:
- true if the aggregate can only be used as a windowed function
-
setAnalytic
public void setAnalytic(boolean analytic)
-
usesDistinctRows
public boolean usesDistinctRows()
- Returns:
- True if the aggregate function specified without the distinct keyword effectively uses only distinct rows. For example min/max would return true and avg would return false.
-
setUsesDistinctRows
public void setUsesDistinctRows(boolean usesDistinctRows)
-
isDecomposable
public boolean isDecomposable()
- Returns:
- true if the aggregate function may be decomposed as agg(agg(x)) for non-partitioned aggregate pushdown. This is only meaningful for single argument aggregate functions.
-
setDecomposable
public void setDecomposable(boolean decomposable)
-
allowsDistinct
public boolean allowsDistinct()
- Returns:
- true if the aggregate function can use the DISTINCT keyword
-
setAllowsDistinct
public void setAllowsDistinct(boolean allowsDistinct)
-
-