Package com.activeviam.risk.core.utils
Class CopperToService
- java.lang.Object
-
- com.activeviam.copper.measure.CopperMeasureCombination
-
- com.activeviam.risk.core.utils.CopperToService
-
public class CopperToService extends com.activeviam.copper.measure.CopperMeasureCombination
This Copper class exposes the references to the following references : + IActivePivot activePivot + IDatastoreVersion datastore + IQueryCache cache It should be used with the following syntax : CopperMeasure m = CopperToService.combine([copper measures]).map((activePivot, datastore, cache, data) -> ...); it is almost the same syntax as the one used for the vanilla map function except the 3 additional parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CopperToService.ICallback
This is the signature of the lambda function used on the map methodstatic class
CopperToService.ServiceFunction
Almost the same as the core class but with the additional parameters Function associated to theCopperToService.ServiceOperator
.static class
CopperToService.ServiceOperator
This class is mainly copied back from the core Operator with only one operand that returns a new measure of typeTypes.TYPE_OBJECT
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopperToService
combine(com.activeviam.copper.api.CopperMeasure... measures)
This is the main function that should be called firstcom.activeviam.copper.api.CopperMeasure
map(CopperToService.ICallback mapper)
This is the function we want to expose the cube, store and cache
-
-
-
Method Detail
-
combine
public static CopperToService combine(com.activeviam.copper.api.CopperMeasure... measures)
This is the main function that should be called first- Parameters:
measures
- Vanilla copper measures that will be exposed on the map function.- Returns:
- The service that could have the specific map method
-
map
public com.activeviam.copper.api.CopperMeasure map(CopperToService.ICallback mapper)
This is the function we want to expose the cube, store and cache- Parameters:
mapper
- The lambda function that will have cube, store, cache and copper metric as parameters- Returns:
- A vanilla copper measure
-
-