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 anIMeasurePublisher.- Author:
- ActiveViam
-
-
Field Summary
Fields Modifier and Type Field Description MeasureOptimizermeasureOptimizerDeprecated, for removal: This API element is subject to removal in a future version.The object which handles the measure optimizations before publication.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddPublicationMetadata(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.IMeasureMemberDescriptiongetCubeMeasureDescription(String measureName)Deprecated, for removal: This API element is subject to removal in a future version.Gets the description of the given measure.Function<IInternalCopperMeasure,String>getMeasureNameProvider()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name provider.Set<IMeasureMemberDescription>getMeasuresToPublish()Deprecated, for removal: This API element is subject to removal in a future version.Returns the added measures to use to enrich the cube.intgetOrComputeMeasureType(IInternalCopperMeasure measure)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.IInternalCopperMeasuregetOriginalMeasureInstance(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.IMeasureMemberDescriptiongetPublishedMeasureDescription(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.IMeasureMemberDescriptionretrieveMeasureDescription(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 booleanshouldMeasureNameBeUnique(IInternalCopperMeasure measure)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.
-
-
-
Field Detail
-
measureOptimizer
public final MeasureOptimizer 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 Detail
-
getCubeMeasureDescription
public IMeasureMemberDescription getCubeMeasureDescription(String measureName)
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
public Function<IInternalCopperMeasure,String> 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
public Set<IMeasureMemberDescription> 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
public IInternalCopperMeasure getOriginalMeasureInstance(IInternalCopperMeasure namedMeasure)
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
public IMeasureMemberDescription 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.- Parameters:
measureName- the name of the measure- Returns:
- the measure description
-
retrieveMeasureDescription
public IMeasureMemberDescription retrieveMeasureDescription(String measureName)
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
public int getOrComputeMeasureType(IInternalCopperMeasure measure)
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
public static boolean shouldMeasureNameBeUnique(IInternalCopperMeasure measure)
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
public void publish(IInternalCopperMeasure measureToPublish)
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
-
-