|
||||||||||
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.AverageExpression
public class AverageExpression
An expression that takes values from one or more fields and returns the average of them.
Constructor Summary | |
---|---|
AverageExpression()
Deprecated. Creates a new expression. |
Method Summary | |
---|---|
String[] |
getField()
Deprecated. Returns the defined fields as array. |
String |
getField(int index)
Deprecated. Returns the defined field at the given index-position. |
int |
getFieldCount()
Deprecated. Returns the number of fields defined in this expression. |
Expression |
getInstance()
Deprecated. Clones the expression. |
int |
getRoundingMode()
Deprecated. Returns the defined rounding mode. |
int |
getScale()
Deprecated. Returns the scale for the divide-operation. |
Object |
getValue()
Deprecated. Returns the average of the values. |
void |
setField(int index,
String field)
Deprecated. Defines the field in the field-list at the given index. |
void |
setField(String[] fields)
Deprecated. Defines all fields as array. |
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.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 AverageExpression()
Number
instances.
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 Object getValue()
public Expression getInstance()
getInstance
in interface Expression
getInstance
in class AbstractExpression
public String[] getField()
public void setField(String[] fields)
fields
- the new list of fields.public String getField(int index)
index
- the position of the field name that should be queried.
public void setField(int index, String field)
index
- the position in the list, where the field should be defined.field
- the name of the field.public int getFieldCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |