Package io.revealbi.core.data
Class RVDataModelMeasure
java.lang.Object
io.revealbi.core.data.RVDataModelMeasure
Represents a custom measure in the data model.
Use this with IRVDataModelProvider.getMeasures(RVDataSourceItem, io.revealbi.core.IRequestContext)
to inject custom measures into a data source.
- API Note:
- This class is part of the beta
IRVDataModelProviderAPI and may change in future releases.
-
Constructor Summary
ConstructorsConstructorDescriptionRVDataModelMeasure(String name, String expression) Creates a new measure with the given name and expression. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the measure.Returns the expression that defines this measure.getName()Returns the name of the measure.voidsetDescription(String description) Sets the description of the measure.
-
Constructor Details
-
RVDataModelMeasure
Creates a new measure with the given name and expression.- Parameters:
name- The name of the measure.expression- The expression that defines the measure.
-
-
Method Details
-
getName
Returns the name of the measure.- Returns:
- The measure name.
-
getExpression
Returns the expression that defines this measure.- Returns:
- The measure expression.
-
getDescription
Returns the description of the measure.- Returns:
- The measure description.
-
setDescription
Sets the description of the measure.- Parameters:
description- The description to set.
-