public class ColumnAverageExpression extends ColumnAggregationExpression
ItemAvgFunction
instead.
Non numeric and null-columns will be treated as zero for the task of summing up all members. Whether these fields are
used counted as valid fields can be controlled with the 'onlyValidFields' flag.Constructor and Description |
---|
ColumnAverageExpression()
Deprecated.
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getField, getField, getFieldCount, getInstance, setField, setField
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public ColumnAverageExpression()
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.