|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.olapi.metadata.BaseMetadataObject | +--oracle.olapi.metadata.mtm.MtmObject | +--oracle.olapi.metadata.mtm.MtmAggregationStep | +--oracle.olapi.metadata.mtm.MtmSimpleAggregationStep
An MtmAggregationStep
that specifies a SQL function and a weighting factor to apply to the calculation of the measure values for the node levels of the hierarchies of the dimensions of this MtmAggregationStep
. The default function is SUM
and the default weight is 1. You can create an instance of this class with the createMtmSimpleAggregationStep
method of an MtmObjectFactory
.
With the setFunction
method, you can specify a SQL analytic function or your own function. The SQL analytic functions include AVG
, COUNT
, MAX
, MIN
, STDDEV
, SUM
, and VARIANCE
. Oracle OLAP uses the function you specify exactly as you specify it.
You can specify a weighting factor with the setWeight
function. The weighting factor can be a constant, an expression, or an existing column. You can create an instance of an MtmValueExpression
to specify as the weighting factor with the createColumnExpression
or createCustomExpression
methods of an MtmObjectFactory
.
Method Summary | |
java.lang.Object |
acceptVisitor(MtmObjectVisitor visitor, java.lang.Object context) Calls the visitMtmSimpleAggregationStep method of the specified MtmObjectVisitor and passes that method this MtmSimpleAggregationStep and the specified context object. |
java.lang.String |
getFunction() Gets the SQL function for this MtmSimpleAggregationStep . |
MtmValueExpression |
getWeight() Gets the weighting factor to apply to the function of this MtmSimpleAggregationStep . |
void |
setFunction(java.lang.String function) Specifies the SQL function for this MtmSimpleAggregationStep . |
void |
setWeight(MtmValueExpression weight) Specifies the weighting factor to apply to the function for this MtmSimpleAggregationStep . |
Methods inherited from class oracle.olapi.metadata.mtm.MtmAggregationStep |
addDimensionMap, getDimensionMaps, removeDimensionMap |
Methods inherited from class oracle.olapi.metadata.BaseMetadataObject |
getID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.Object acceptVisitor(MtmObjectVisitor visitor, java.lang.Object context)
visitMtmSimpleAggregationStep
method of the specified MtmObjectVisitor
and passes that method this MtmSimpleAggregationStep
and the specified context
object.visitor
- An MtmObjectVisitor
.context
- An Object
.Object
returned by the visitMtmSimpleAggregationStep
method.public java.lang.String getFunction()
MtmSimpleAggregationStep
.String
whose value is the SQL function for this MtmSimpleAggregationStep
.public MtmValueExpression getWeight()
MtmSimpleAggregationStep
.MtmValueExpression
that specifies the weighting factor that applies to the SQL function for this MtmSimpleAggregationStep
.public void setFunction(java.lang.String function)
MtmSimpleAggregationStep
.function
- A String
that specifies the SQL function for this MtmSimpleAggregationStep
.public void setWeight(MtmValueExpression weight)
MtmSimpleAggregationStep
. The weighting factor can be a constant, an expression, such as a custom expression that you create, or an column, such as an existing column in a table.weight
- An MtmValueExpression
that specifies a weighting factor to apply to the SQL function for this MtmSimpleAggregationStep
.
|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |