Package com.activeviam.copper
Class AMeasurePublisher
java.lang.Object
com.activeviam.copper.AMeasurePublisher
- All Implemented Interfaces:
com.activeviam.copper.private_.IMeasurePublisher
- Direct Known Subclasses:
DataCubeMeasurePublisher
@Deprecated(since="6.0.6",
forRemoval=true)
public abstract class AMeasurePublisher
extends Object
implements com.activeviam.copper.private_.IMeasurePublisher
Deprecated, for removal: This API element is subject to removal in a future version.
Abstract implementation of an
IMeasurePublisher.- Author:
- ActiveViam
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MeasureOptimizerDeprecated, for removal: This API element is subject to removal in a future version.The object which handles the measure optimizations before publication. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPublicationMetadata(IInternalCopperMeasure measure, IMeasureMemberDescription measureDescriptionWithoutMetadata, MeasureMetadata publicationMetadata) Deprecated, for removal: This API element is subject to removal in a future version.Mutates a measure description to take into accountpublication metadata.getCubeMeasureDescription(String measureName) Deprecated, for removal: This API element is subject to removal in a future version.Gets the description of the given measure.Deprecated, for removal: This API element is subject to removal in a future version.Returns the name provider.Deprecated, for removal: This API element is subject to removal in a future version.Returns the added measures to use to enrich the cube.intDeprecated, for removal: This API element is subject to removal in a future version.Gets the type of a measure if present, else computes it.getOriginalMeasureInstance(IInternalCopperMeasure namedMeasure) Deprecated, for removal: This API element is subject to removal in a future version.Fetches the original CopperMeasure instance that was used to create a namedMeasure.getPublishedMeasureDescription(String measureName) Deprecated, for removal: This API element is subject to removal in a future version.Returns the description of the measure ornullif it has not been published.voidpublish(IInternalCopperMeasure measureToPublish) Deprecated, for removal: This API element is subject to removal in a future version.Publishes the given measure.retrieveMeasureDescription(String measureName) Deprecated, for removal: This API element is subject to removal in a future version.Finds theIMeasureMemberDescriptionof a measure already published or exists in the original cube description.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if the name of the given measure should be unique.
-
Field Details
-
measureOptimizer
Deprecated, for removal: This API element is subject to removal in a future version.The object which handles the measure optimizations before publication.
-
-
Method Details
-
getCubeMeasureDescription
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:com.activeviam.copper.private_.IMeasurePublisherGets the description of the given measure.Only works if the measure existed before creating the
ICopperContext.- Specified by:
getCubeMeasureDescriptionin interfacecom.activeviam.copper.private_.IMeasurePublisher
-
getMeasureNameProvider
Deprecated, for removal: This API element is subject to removal in a future version.Returns the name provider.- Specified by:
getMeasureNameProviderin interfacecom.activeviam.copper.private_.IMeasurePublisher- Returns:
- the name provider
-
getMeasuresToPublish
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:com.activeviam.copper.private_.IMeasurePublisherReturns the added measures to use to enrich the cube.- Specified by:
getMeasuresToPublishin interfacecom.activeviam.copper.private_.IMeasurePublisher- Returns:
- the added measures to use to enrich the cube
-
getOriginalMeasureInstance
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:com.activeviam.copper.private_.IMeasurePublisherFetches the original CopperMeasure instance that was used to create a namedMeasure.- Specified by:
getOriginalMeasureInstancein interfacecom.activeviam.copper.private_.IMeasurePublisher- Parameters:
namedMeasure- the NamedMeasure instance- Returns:
- the original CopperMeasure that was published under the same name as the current named
measure, or
nullif this measure was defined outside of Copper's scope
-
addPublicationMetadata
public void addPublicationMetadata(IInternalCopperMeasure measure, IMeasureMemberDescription measureDescriptionWithoutMetadata, MeasureMetadata publicationMetadata) Deprecated, for removal: This API element is subject to removal in a future version.Mutates a measure description to take into accountpublication metadata.- Parameters:
measure- the Copper measuremeasureDescriptionWithoutMetadata- the measure description to update in-place.publicationMetadata- the metadata containing multiple attributes to apply to the description
-
getPublishedMeasureDescription
Deprecated, for removal: This API element is subject to removal in a future version.Returns the description of the measure ornullif it has not been published.- Parameters:
measureName- the name of the measure- Returns:
- the measure description
-
retrieveMeasureDescription
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:com.activeviam.copper.private_.IMeasurePublisherFinds theIMeasureMemberDescriptionof a measure already published or exists in the original cube description. If none is found, it means the user made a mistake referencing an unknown/unpublished measure.- Specified by:
retrieveMeasureDescriptionin interfacecom.activeviam.copper.private_.IMeasurePublisher- Parameters:
measureName- the name of the measure- Returns:
- the
IMeasureMemberDescriptioncorresponding to the given measure
-
getOrComputeMeasureType
Deprecated, for removal: This API element is subject to removal in a future version.Gets the type of a measure if present, else computes it.- Specified by:
getOrComputeMeasureTypein interfacecom.activeviam.copper.private_.IMeasurePublisher- Returns:
- the type of the measure
-
shouldMeasureNameBeUnique
Deprecated, for removal: This API element is subject to removal in a future version.Checks if the name of the given measure should be unique. It is true for native measure and measure for which the user specified a name.- Parameters:
measure- the measure- Returns:
trueif the name should be unique,falseotherwise
-
publish
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:com.activeviam.copper.private_.IMeasurePublisherPublishes the given measure.- Specified by:
publishin interfacecom.activeviam.copper.private_.IMeasurePublisher- Parameters:
measureToPublish- the measure to publish
-