public interface MutableRtaSchema extends MutableMetadataElement, RtaSchema
RtaSchema can have multiple MutableCubes.
Each Cube defines a MutableMeasurement and one or more MutableDimensionHierarchys
Each DimensionHierarchy has an ordered list of Dimensions.
A Dimension is the attribute of the measurement over which a metric is aggregated.
| Modifier and Type | Method and Description |
|---|---|
void |
addRetentionPolicy(java.lang.String qualifier,
TimeUnits.Unit timUnit,
int multiplier,
java.lang.String purgeTimeOfDay,
long purgeFrequencyPeriod) |
Attribute |
newAttribute(java.lang.String name,
DataType dataType)
Create a new attribute on this measurement.
|
MutableCube |
newCube(java.lang.String name)
Create a new
MutableCube using the specified name. |
Dimension |
newDimension(Attribute attribute)
Creates a new dimension and binds it with an attribute of the measurement.
|
Dimension |
newDimension(java.lang.String name,
Attribute attribute)
Creates a new dimension and binds it with an attribute of the measurement.
|
MutableMeasurement |
newMeasurement(java.lang.String name)
Define the measurement for this schema.
|
TimeDimension |
newTimeDimension(java.lang.String name,
Attribute associatedAttribute,
TimeUnits.Unit unit,
int frequency)
New time dimension.
|
Attribute |
removeAttribute(java.lang.String name) |
MutableCube |
removeCube(java.lang.String name)
Removes the cube.
|
Dimension |
removeDimension(java.lang.String name)
Removes the dimension from the measurement.
|
MutableMeasurement |
removeMeasurement(java.lang.String name) |
void |
removeRetentionPolicy(java.lang.String qualifier) |
void |
setDisplayName(java.lang.String name)
Set display name to schema
|
setDescription, setName, setPropertycreateFact, createFact, getAttribute, getAttributes, getCube, getCubes, getDimension, getDimensions, getDisplayName, getMeasurement, getMeasurements, getRetentionPolicies, getVersion, isSystemSchema, toXMLgetDescription, getName, getOwnerSchema, getProperty, getPropertyNames, serializeAttribute newAttribute(java.lang.String name, DataType dataType) throws DuplicateSchemaElementException, UndefinedSchemaElementException
name - Unique name for the attribute.dataType - The datatype for legal values of this attributeDuplicateSchemaElementException - if an attribute with same name already exists.UndefinedSchemaElementExceptionAttribute removeAttribute(java.lang.String name)
Dimension newDimension(java.lang.String name, Attribute attribute) throws DuplicateSchemaElementException, UndefinedSchemaElementException
name - the name of the dimension. Optional parameterattribute - the attribute to bind it withDuplicateSchemaElementException - If a dimension with same name already exists in this measurement.UndefinedSchemaElementExceptionDimension newDimension(Attribute attribute) throws DuplicateSchemaElementException, UndefinedSchemaElementException
attribute - the attribute to bind it withDuplicateSchemaElementException - If a dimension with same name already exists in this measurement.UndefinedSchemaElementExceptionTimeDimension newTimeDimension(java.lang.String name, Attribute associatedAttribute, TimeUnits.Unit unit, int frequency) throws DuplicateSchemaElementException, UndefinedSchemaElementException
name - the nameUndefinedSchemaElementExceptionDuplicateSchemaElementExceptionDimension removeDimension(java.lang.String name)
dimension - the dimensionMutableMeasurement newMeasurement(java.lang.String name) throws DuplicateSchemaElementException, UndefinedSchemaElementException
name - UndefinedSchemaElementExceptionDuplicateSchemaElementExceptionMutableMeasurement removeMeasurement(java.lang.String name)
MutableCube newCube(java.lang.String name) throws DuplicateSchemaElementException, UndefinedSchemaElementException
MutableCube using the specified name.name - the nameDuplicateSchemaElementException - If a cube exists with this name in the schema.UndefinedSchemaElementExceptionMutableCube removeCube(java.lang.String name)
cube - the cubevoid addRetentionPolicy(java.lang.String qualifier,
TimeUnits.Unit timUnit,
int multiplier,
java.lang.String purgeTimeOfDay,
long purgeFrequencyPeriod)
void removeRetentionPolicy(java.lang.String qualifier)
void setDisplayName(java.lang.String name)
setDisplayName in interface MutableMetadataElementdisplay - name of schemaCopyright © 2000-2014 TIBCO Inc. All Rights Reserved.