public interface MutableRtaSchema extends MutableMetadataElement, RtaSchema
RtaSchema
can have multiple MutableCube
s.
Each Cube
defines a MutableMeasurement
and one or more MutableDimensionHierarchy
s
Each DimensionHierarchy
has an ordered list of Dimension
s.
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, setProperty
createFact, createFact, getAttribute, getAttributes, getCube, getCubes, getDimension, getDimensions, getDisplayName, getMeasurement, getMeasurements, getRetentionPolicies, getVersion, isSystemSchema, toXML
getDescription, getName, getOwnerSchema, getProperty, getPropertyNames, serialize
Attribute 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.UndefinedSchemaElementException
Attribute 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.UndefinedSchemaElementException
Dimension newDimension(Attribute attribute) throws DuplicateSchemaElementException, UndefinedSchemaElementException
attribute
- the attribute to bind it withDuplicateSchemaElementException
- If a dimension with same name already exists in this measurement.UndefinedSchemaElementException
TimeDimension newTimeDimension(java.lang.String name, Attribute associatedAttribute, TimeUnits.Unit unit, int frequency) throws DuplicateSchemaElementException, UndefinedSchemaElementException
name
- the nameUndefinedSchemaElementException
DuplicateSchemaElementException
Dimension removeDimension(java.lang.String name)
dimension
- the dimensionMutableMeasurement newMeasurement(java.lang.String name) throws DuplicateSchemaElementException, UndefinedSchemaElementException
name
- UndefinedSchemaElementException
DuplicateSchemaElementException
MutableMeasurement 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.UndefinedSchemaElementException
MutableCube 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 MutableMetadataElement
display
- name of schemaCopyright © 2000-2014 TIBCO Inc. All Rights Reserved.