|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableRtaSchema
This is a logical collection of all related metrics artifacts like cubes and dimensions.
A 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.
Method Summary | |
---|---|
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 |
Methods inherited from interface com.tibco.rta.model.mutable.MutableMetadataElement |
---|
setDescription, setName, setProperty |
Methods inherited from interface com.tibco.rta.model.RtaSchema |
---|
createFact, createFact, getAttribute, getAttributes, getCube, getCubes, getDimension, getDimensions, getDisplayName, getMeasurement, getMeasurements, getRetentionPolicies, getVersion, isSystemSchema, toXML |
Methods inherited from interface com.tibco.rta.model.MetadataElement |
---|
getDescription, getName, getOwnerSchema, getProperty, getPropertyNames, serialize |
Method Detail |
---|
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 attribute
DuplicateSchemaElementException
- 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 with
DuplicateSchemaElementException
- 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 with
DuplicateSchemaElementException
- 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 name
UndefinedSchemaElementException
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 name
DuplicateSchemaElementException
- If a cube exists with this name in the schema.
UndefinedSchemaElementException
MutableCube removeCube(java.lang.String name)
cube
- the cube
void 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 schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |