|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.AWXML.BaseObject | +--oracle.AWXML.SolveDefinition | +--oracle.AWXML.AggregationDefinition
A SolveDefinition
that specifies aggregation instructions for an AggregationSolve
. For a diagram of AggregationDefinition
associations, see AggregationDefinition Class Associations.
An AggregationDefinition
is owned by a Cube
.
An AggregationDefinition
owns an ordered set of CalculationSpecification
objects, each one specifying how to aggregate the data along one of its dimensions. Position within the calculation list determines when each calculation is performed. A CalculationSpecification
can be either an Aggregation
or a ModelRef
. An Aggregation
specifies the aggregation instructions for a hierarchical dimension. A ModelRef
uses an OLAP DML model to specify aggregation instructions, typically for non-hierarchical dimensions such as line items.
An AggregationDefinition
is implemented in the OLAP DML as an aggmap object for aggregation. This type of aggmap specifies which data to preaggregate, which data to aggregate at runtime, aggregation operators, and other processing parameters. Each CalculationSpecification
in the AggregationDefinition
is implemented either as an OLAP DML RELATION or MODEL statement in the aggmap.
The AggregationDefinition
class includes methods for specifying AGGINDEX, CACHE, and NA/NONA statements in the aggregation specification. AGGINDEX, CACHE, NA, and NONA affect the OLAP DML AGGREGATE function, which performs aggregation at runtime.
For more information on OLAP aggregation, see the OLAP DML Reference and the OLAP Application Developer's Guide.
AggregationSolve
Fields inherited from class oracle.AWXML.BaseObject |
DATABASENULL |
Constructor Summary | |
AggregationDefinition(BaseObject input) Creates an AggregationDefinition for the specified Cube . |
Method Summary | |
void |
addCalculationSpecification(CalculationSpecification input) Adds the specified CalculationSpecification to the AggregationDefinition , and appends it to the end of the calculation list. |
void |
addCalculationSpecificationAfter(CalculationSpecification input, BaseObject reference) Adds the specified CalculationSpecification to the AggregationDefinition , and inserts it in the calculation list after the referenced CalculationSpecification . |
void |
addCalculationSpecificationBefore(CalculationSpecification input, BaseObject reference) Adds the specified CalculationSpecification to the AggregationDefinition , and inserts it in the calculation list before the referenced CalculationSpecification . |
void |
addCalculationSpecificationFirst(CalculationSpecification input) Adds the specified CalculationSpecification to the AggregationDefinition , and appends it to the beginning of the calculation list. |
void |
addSolveDefDimRef(SolveDefDimRef input) Adds the specified dimension reference to the AggregationDefinition . |
java.lang.String |
Create(AWConnection connection) Creates the AggregationDefinition in the current analytic workspace of the specified database connection. |
AggregationHierarchySpecification |
createAggregationHierarchySpecification() Creates an AggregationHierarchySpecification in the AggregationDefinition , and appends it to the end of the calculation list. |
AggregationHierarchySpecification |
createAggregationHierarchySpecificationAfter(CalculationSpecification input) Creates an AggregationHierarchySpecification in the AggregationDefinition , and inserts it in the calculation list after the referenced CalculationSpecification . |
AggregationHierarchySpecification |
createAggregationHierarchySpecificationBefore(CalculationSpecification input) Creates an AggregationHierarchySpecification in the AggregationDefinition , and inserts it in the calculation list before the referenced CalculationSpecification . |
AggregationHierarchySpecification |
createAggregationHierarchySpecificationFirst() Creates an AggregationHierarchySpecification in the AggregationDefinition , and appends it to the beginning of the calculation list. |
ModelRef |
createModelRef() Creates a ModelRef in the AggregationDefinition , and appends it to the end of the calculation list. |
ModelRef |
createModelRefAfter(CalculationSpecification input) Creates a ModelRef in the AggregationDefinition , and inserts it in the calculation list after the referenced CalculationSpecification . |
ModelRef |
createModelRefBefore(CalculationSpecification input) Creates a ModelRef in the AggregationDefinition , and inserts it in the calculation list before the referenced CalculationSpecification . |
ModelRef |
createModelRefFirst() Creates a ModelRef in the AggregationDefinition , and appends it to the beginning of the calculation list. |
SolveDefDimRef |
createSolveDefDimRef() Creates a dimension reference in the AggregationDefinition . |
java.lang.String |
Delete(AWConnection connection) Deletes the AggregationDefinition in the current analytic workspace of the specified database connection. |
java.lang.String |
getAggIndex() Returns the value of the AGGINDEX statement in the aggregation specification. |
java.lang.String |
getCacheNa() Returns the NA or NONA keyword in the aggregation specification. |
java.lang.String |
getCacheStore() Returns the value of the CACHE statement in the aggregation specification. |
java.util.Vector |
getCalculationSpecification() Returns the ordered list of CalculationSpecification objects in the AggregationDefinition . |
java.util.Vector |
getSolveDefDimRefs() Returns the dimension references associated with the AggregationDefinition . |
void |
readAWDefinitions(AWConnection connection, boolean readType) Reads the objects owned by the AggregationDefinition into memory, making them available for processing within the current analytic workspace of the specified database connection. |
void |
removeCalculationSpecification(CalculationSpecification input) Removes the specified CalculationSpecification from the AggregationDefinition . |
void |
removeSolveDefDimRef(SolveDefDimRef input) Removes the specified dimension reference from the AggregationDefinition . |
void |
setAggIndex(java.lang.String input) Returns the value of the AGGINDEX statement in the aggregation specification. |
void |
setCacheNa(java.lang.String input) Sets the NA or NONA keyword in the aggregation specification. |
void |
setCacheStore(java.lang.String input) Sets the CACHE statement in the aggregation specification. |
java.lang.String |
WriteToXML() Gets an XML representation of the AggregationDefinition . |
Methods inherited from class oracle.AWXML.BaseObject |
Alter, CreateAfter, CreateBefore, CreateFirst, DataRead, getColumnName, getId, getLongName, getLongName, getName, getOwner, getPluralName, getPluralName, getSchema, getShortName, getShortName, setColumnName, setLongName, setLongName, setName, setPluralName, setPluralName, setSchema, setShortName, setShortName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AggregationDefinition(BaseObject input)
AggregationDefinition
for the specified Cube
.input
- The Cube
that owns the AggregationDefinition
.Method Detail |
public java.lang.String getAggIndex()
YES
" or "NO
".public void setAggIndex(java.lang.String input)
YES
" or "NO
".public java.lang.String getCacheStore()
public void setCacheStore(java.lang.String input)
The CACHE statement specifies how to store aggregate data and NA values calculated at runtime by the AGGREGATE function. The CACHE statement also controls whether or not to populate the detail data in a target variable.
input
- The text of the CACHE statement.public java.lang.String getCacheNa()
NA
" or "NONA
".public void setCacheNa(java.lang.String input)
The NA keyword causes NA values generated at runtime by the AGGREGATE function to be stored in the session cache. The NONA keyword causes no NA values generated at runtime by the AGGREGATE function to be stored in the session cache.
input
- Either "NA
" or "NONA
".public java.lang.String WriteToXML()
AggregationDefinition
.String
that represents the AggregationDefinition
.public java.util.Vector getCalculationSpecification()
CalculationSpecification
objects in the AggregationDefinition
.Vector
of CalculationSpecification
objects.public void removeCalculationSpecification(CalculationSpecification input)
CalculationSpecification
from the AggregationDefinition
.input
- The CalculationSpecification
to remove.public void addCalculationSpecification(CalculationSpecification input)
CalculationSpecification
to the AggregationDefinition
, and appends it to the end of the calculation list.input
- The CalculationSpecification
to add.public void addCalculationSpecificationAfter(CalculationSpecification input, BaseObject reference)
CalculationSpecification
to the AggregationDefinition
, and inserts it in the calculation list after the referenced CalculationSpecification
.input
- The CalculationSpecification
to add.reference
- The referenced CalculationSpecification
.public void addCalculationSpecificationBefore(CalculationSpecification input, BaseObject reference)
CalculationSpecification
to the AggregationDefinition
, and inserts it in the calculation list before the referenced CalculationSpecification
.input
- The CalculationSpecification
to add.reference
- The referenced CalculationSpecification
.public void addCalculationSpecificationFirst(CalculationSpecification input)
CalculationSpecification
to the AggregationDefinition
, and appends it to the beginning of the calculation list.input
- The CalculationSpecification
to add.public void addSolveDefDimRef(SolveDefDimRef input)
AggregationDefinition
.input
- The SolveDefDimRef
to add.public void removeSolveDefDimRef(SolveDefDimRef input)
AggregationDefinition
.input
- The SolveDefDimRef
to remove.public java.util.Vector getSolveDefDimRefs()
AggregationDefinition
.Vector
of SolveDefDimRef
objects.public SolveDefDimRef createSolveDefDimRef()
AggregationDefinition
.SolveDefDimRef
.public AggregationHierarchySpecification createAggregationHierarchySpecification()
AggregationHierarchySpecification
in the AggregationDefinition
, and appends it to the end of the calculation list.AggregationHierarchySpecification
.public AggregationHierarchySpecification createAggregationHierarchySpecificationAfter(CalculationSpecification input)
AggregationHierarchySpecification
in the AggregationDefinition
, and inserts it in the calculation list after the referenced CalculationSpecification
.input
- The referenced CalculationSpecification
.AggregationHierarchySpecification
.public AggregationHierarchySpecification createAggregationHierarchySpecificationBefore(CalculationSpecification input)
AggregationHierarchySpecification
in the AggregationDefinition
, and inserts it in the calculation list before the referenced CalculationSpecification
.input
- The referenced CalculationSpecification
.AggregationHierarchySpecification
.public AggregationHierarchySpecification createAggregationHierarchySpecificationFirst()
AggregationHierarchySpecification
in the AggregationDefinition
, and appends it to the beginning of the calculation list.AggregationHierarchySpecification
.public ModelRef createModelRef()
ModelRef
in the AggregationDefinition
, and appends it to the end of the calculation list.ModelRef
.public ModelRef createModelRefAfter(CalculationSpecification input)
ModelRef
in the AggregationDefinition
, and inserts it in the calculation list after the referenced CalculationSpecification
.input
- The referenced CalculationSpecification
.ModelRef
.public ModelRef createModelRefBefore(CalculationSpecification input)
ModelRef
in the AggregationDefinition
, and inserts it in the calculation list before the referenced CalculationSpecification
.input
- The referenced CalculationSpecification
.ModelRef
.public ModelRef createModelRefFirst()
ModelRef
in the AggregationDefinition
, and appends it to the beginning of the calculation list.ModelRef
.public java.lang.String Create(AWConnection connection)
AggregationDefinition
in the current analytic workspace of the specified database connection.connection
- The AWConnection
that specifies the database connection.String
that contains success
.public java.lang.String Delete(AWConnection connection)
AggregationDefinition
in the current analytic workspace of the specified database connection.connection
- The AWConnection
that specifies the database connection.String
that contains success
.public void readAWDefinitions(AWConnection connection, boolean readType)
AggregationDefinition
into memory, making them available for processing within the current analytic workspace of the specified database connection.connection
- The AWConnection
that specifies the database connection.readType
- Specify True
to read the AggregationDefinition
and all its child objects. Specify False
to read the AggregationDefinition
but omit specific child objects.
|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |