com.microstrategy.web.objects.rw.RWUserMetric |
The RWUserMetric class represents an additional derived metric added to the grid or data set. Those metrics are not added to the data set working set but rather a kept in the separate collection.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getDataType()
Returns the data type of this metric.
| ||||||||||
abstract WebFormat |
getFormat()
Returns metric format
| ||||||||||
abstract String |
getFormula()
Retruns the string representation of the metric formula.
| ||||||||||
abstract WebMetric |
getMetric()
Returns metric definition
| ||||||||||
abstract boolean |
isAggregateFromBase()
Returns whether this metric is aggregated from base.
| ||||||||||
abstract boolean |
isFormulaTokenStream()
Check whether the formula is a token stream
| ||||||||||
abstract void |
setAggregateFromBase(boolean aggregateFromBase)
Set the Metric aggregate from base with different formula.
| ||||||||||
abstract void |
setFormula(String value, boolean isTokenStream)
Allows the user to set the formula of a derived metric.
| ||||||||||
abstract void |
setFormula(String value)
Allows the user to set the formula of a derived metric.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns the data type of this metric.
EnumDSSXMLDataType
Retruns the string representation of the metric formula.
Returns whether this metric is aggregated from base. This is a readonly property. It only can be set when first time create the user metric. When this property is true, formula of this metric can not be changed. If user wants a different formula, user needs to remove this metric and add another metric with different formular.
Check whether the formula is a token stream
Set the Metric aggregate from base with different formula.
Allows the user to set the formula of a derived metric.
value | The formula to use for the metric. |
---|---|
isTokenStream | flag to indicate whether the formula is a token stream |
UnsupportedOperationException | Thrown if the metric is not derived, and thus the formula cannot be changed, or if this object refers to a metric prompt, or this metric is aggregate from base, therefore its formula is not allowed to be changed. |
---|
Allows the user to set the formula of a derived metric.
value | The formula to use for the metric. |
---|
UnsupportedOperationException | Thrown if the metric is not derived, and thus the formula cannot be changed, or if this object refers to a metric prompt, or this metric is aggregate from base, therefore its formula is not allowed to be changed. |
---|