public class AverageExpression extends AbstractExpression
Constructor and Description |
---|
AverageExpression()
Deprecated.
Creates a new expression.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public AverageExpression()
Number
instances.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()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.