Package com.invirgance.convirgance.olap
Class Measure
java.lang.Object
com.invirgance.convirgance.olap.Measure
- Direct Known Subclasses:
AverageMeasure,SumMeasure
Provides support for aggregated quantitative values of data.
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the function associated with the Measure.Returns the Metric associated with this Measure.getName()Returns the name of the Measure as a String.getStar()Returns the star schema associated with the Measure.voidsetFunction(String function) Assigns a function to the Measure object.voidSets the Metric associated with this Measure.voidAssigned a name to this Measure.
-
Constructor Details
-
Measure
public Measure()Default constructor initializes an empty Measure with no assigned attributes. -
Measure
Constructs a Measure with a specified name, associated Metric, and the function that generates the measure.- Parameters:
name- the name of the measure as a String.metric- the associated Metric object.function- the name of the aggregating SQL function as a String.
-
-
Method Details
-
getStar
Returns the star schema associated with the Measure.- Returns:
- Star object associated with the Measure.
-
getName
Returns the name of the Measure as a String.- Returns:
- name of the Measure as a String.
-
setName
Assigned a name to this Measure.- Parameters:
name- the name to be assigned.
-
getMetric
Returns the Metric associated with this Measure.- Returns:
- The Metric behind the Measure.
-
setMetric
Sets the Metric associated with this Measure.- Parameters:
metric- the Metric associated with the Measure.
-
getFunction
Returns the function associated with the Measure.- Returns:
- the function associated with the Measure as a String.
-
setFunction
Assigns a function to the Measure object.- Parameters:
function- the function associated with the measure as a String.
-