|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.ColumnAggregationExpression
org.pentaho.reporting.engine.classic.core.function.ColumnAverageExpression
public class ColumnAverageExpression
Computes the horizontal average over all columns specified in the field-list. The average will be computed over all
fields of the current data-row, it will not be computed for all rows in the group. For that use the ItemAvgFunction
instead.
Constructor Summary | |
---|---|
ColumnAverageExpression()
Deprecated. Default Constructor. |
Method Summary | |
---|---|
int |
getRoundingMode()
Deprecated. Returns the defined rounding mode. |
int |
getScale()
Deprecated. Returns the scale for the divide-operation. |
Object |
getValue()
Deprecated. Computes the horizontal average of all field in the field-list. |
boolean |
isOnlyValidFields()
Deprecated. Returns, whether non-numeric and null-values are ignored for the average-computation. |
boolean |
isReturnInfinity()
Deprecated. Returns, whether the expression returns infinity if there are no valid fields. |
void |
setOnlyValidFields(boolean onlyValidFields)
Deprecated. Defines, whether non-numeric and null-values are ignored for the average-computation. |
void |
setReturnInfinity(boolean returnInfinity)
Deprecated. Defines, whether the expression returns infinity if there are no valid fields. |
void |
setRoundingMode(int roundingMode)
Deprecated. Defines the rounding mode. |
void |
setScale(int scale)
Deprecated. Defines the scale for the divide-operation. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.ColumnAggregationExpression |
---|
getField, getField, getFieldCount, getInstance, setField, setField |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnAverageExpression()
Method Detail |
---|
public int getRoundingMode()
BigDecimal.divide(java.math.BigDecimal,int)
public void setRoundingMode(int roundingMode)
roundingMode
- the rounding mode.BigDecimal.divide(java.math.BigDecimal,int)
public int getScale()
public void setScale(int scale)
scale
- the scale.public boolean isReturnInfinity()
public void setReturnInfinity(boolean returnInfinity)
returnInfinity
- true, if infinity is returned, false otherwise.public boolean isOnlyValidFields()
public void setOnlyValidFields(boolean onlyValidFields)
onlyValidFields
- true, if the invalid fields will be ignored, false if they count as valid zero-value
fields.public Object getValue()
ItemAvgFunction
instead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |