public interface MutableDimensionHierarchy extends MutableMetadataElement, DimensionHierarchy
Dimensions on which aggregations should be performed| Modifier and Type | Method and Description |
|---|---|
void |
addDimensionAfter(Dimension refDimension,
Dimension newDimension)
Inserts new dimension after the reference dimension.
|
void |
addExcludeMeasurement(Dimension dimension,
Measurement measurement)
Add a measurement to exclude from being computed for this dimension.
|
void |
addMeasurement(MutableMeasurement measurement) |
Dimension |
removeDimension(java.lang.String name)
Removes the dimension.
|
void |
removeExcludeMeasurement(Dimension dimension,
Measurement measurement)
Remove a previously set exclude measurement.
|
void |
removeMeasurement(Measurement measurement)
Remove a measurement from this hierarchy.
|
void |
setComputeForLevel(Dimension dimension,
boolean toCompute)
Sets the computation status for a given dimension.
|
void |
setEnabled(boolean isEnabled)
enable computation for this hierarchy
|
void |
setRetentionPolicy(RetentionPolicy retentionPolicy)
Set a retention policy for this hierarchy.
|
void |
setRootDimension(Dimension dimension)
Set root dimension for the hierarchy.
|
setDescription, setDisplayName, setName, setPropertycomputeRoot, getComputeForLevel, getDepth, getDimension, getDimension, getDimensionAttribNames, getDimensions, getExcludedMeasurements, getExcludedMeasurements, getLevel, getMeasurement, getMeasurements, getMeasurementsForLevel, getOwnerCube, getRetentionPolicy, isEnabled, isExcludedgetDescription, getDisplayName, getName, getOwnerSchema, getProperty, getPropertyNames, serializevoid addDimensionAfter(Dimension refDimension, Dimension newDimension) throws IllegalSchemaException
refDimension - the dimension to add new dimension after.
It can take a null value.
If null and no dimensions exist, it is same as setRootDimension(Dimension)
else throw IllegalArgumentExceptionnewDimension - the new dimension to add.IllegalSchemaException - If the owner schema of this hierarchy and the child dimension are differentjava.lang.IllegalArgumentException - If the new child and the reference dimension are equal.java.lang.IllegalArgumentException - If refDimension is null and hierarchy is not emptyDimension removeDimension(java.lang.String name) throws IllegalSchemaException
dimElement - the dim elementIllegalSchemaExceptionvoid setRootDimension(Dimension dimension)
dimension - the root dimension.void addMeasurement(MutableMeasurement measurement) throws UndefinedSchemaElementException, DuplicateSchemaElementException
measurement - UndefinedSchemaElementExceptionDuplicateSchemaElementExceptionvoid removeMeasurement(Measurement measurement)
measurement - the measurement to remove.void addExcludeMeasurement(Dimension dimension, Measurement measurement)
dimension - the dimension for which to exclude computation of a measurement.measurement - the associated measurement to exclude.void removeExcludeMeasurement(Dimension dimension, Measurement measurement)
dimension - the dimension for which to remove the exclude computation of a measurement.measurement - the associated measurement to exclude.void setComputeForLevel(Dimension dimension, boolean toCompute)
dimension - the dimension for which to not compute measurements.toCompute - set to false if you do not wich to compute measurements for this dimension.void setRetentionPolicy(RetentionPolicy retentionPolicy)
retentionPolicy - the retention policy to set for this hierarchy.void setEnabled(boolean isEnabled)
isEnabled - is false if computation for this hierarchy is disabledCopyright © 2000-2014 TIBCO Inc. All Rights Reserved.