Package com.activeviam.builders
Class DelegatingNamedCubeDescriptionBuilder
java.lang.Object
com.activeviam.builders.DelegatingNamedCubeDescriptionBuilder
- All Implemented Interfaces:
ICanStartBuildingDimensions,ICanStartBuildingQueryCube,ICanStartBuildingMeasures,ICubeDescriptionBuilder.INamedCubeDescriptionBuilder,IHasAtLeastOneMeasure
Simple wrapper around
SimpleCubeDescriptionBuilder to implement the step IHasAtLeastOneMeasure that cannot be directly implemented by SimpleCubeDescriptionBuilder because of conflicting generic types for ICanStartBuildingEpochDimension also needed by the IQueryCubeDescriptionBuilder.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.activeviam.desc.build.dimensions.ICanStartBuildingDimensions
ICanStartBuildingDimensions.DimensionsAdderNested classes/interfaces inherited from interface com.activeviam.desc.build.ICanStartBuildingMeasures
ICanStartBuildingMeasures.BuildablePostProcessorBuilder, ICanStartBuildingMeasures.ICanBuildPreAggregatedMeasureBuilder, ICanStartBuildingMeasures.INativeMeasureBuilder, ICanStartBuildingMeasures.IPostProcessorBuilder, ICanStartBuildingMeasures.IPreAggregatedMeasureBuilder, ICanStartBuildingMeasures.IPreAggregatedMeasureBuilderWithField -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingNamedCubeDescriptionBuilder(SimpleCubeDescriptionBuilder<IActivePivotInstanceDescription> delegate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionStarts creating a query cube on top of the existing description.Starts building a pre-aggregated measure.withAggregatedMeasure(IBasicAggregatedMeasureDescription description) Adds the description for a measure.withCalculations(Consumer<ICopperContext> calculations) Adds multiple measures and hierarchies via the Copper API.Starts customizing theIMeasureHierarchy.COUNT_IDnative measure.withDimension(String name) Start building a dimension.Integrates the dimensions built by a separate function.withPostProcessor(IPostProcessorDescription description) Adds the description for a post-processor.withPostProcessor(String name) Adds the description for a post-processor.Starts customizing theIMeasureHierarchy.TIMESTAMP_IDnative measure.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.activeviam.desc.build.dimensions.ICanStartBuildingDimensions
withSingleLevelDimension, withSingleLevelDimensions, withSingleLevelDimensionsMethods inherited from interface com.activeviam.desc.build.ICanStartBuildingMeasures
withMeasures
-
Constructor Details
-
DelegatingNamedCubeDescriptionBuilder
public DelegatingNamedCubeDescriptionBuilder(SimpleCubeDescriptionBuilder<IActivePivotInstanceDescription> delegate) Constructor.- Parameters:
delegate- The delegate constructor.
-
-
Method Details
-
withDimension
Description copied from interface:ICanStartBuildingDimensionsStart building a dimension.- Specified by:
withDimensionin interfaceICanStartBuildingDimensions- Parameters:
name- The dimension name.- Returns:
- The dimension builder.
-
withDimensions
public ICanBuildCubeDescription<IActivePivotInstanceDescription> withDimensions(ICanStartBuildingDimensions.DimensionsAdder adder) Description copied from interface:ICanStartBuildingDimensionsIntegrates the dimensions built by a separate function.- Specified by:
withDimensionsin interfaceICanStartBuildingDimensions- Parameters:
adder- The function adding the dimensions.- Returns:
- The builder having integrated the function changes.
-
asQueryCube
Description copied from interface:ICanStartBuildingQueryCubeStarts creating a query cube on top of the existing description.- Specified by:
asQueryCubein interfaceICanStartBuildingQueryCube- Returns:
- The builder for chained calls.
-
withContributorsCount
Description copied from interface:ICanStartBuildingMeasuresStarts customizing theIMeasureHierarchy.COUNT_IDnative measure.- Specified by:
withContributorsCountin interfaceICanStartBuildingMeasures- Returns:
- The native measure customization builder.
-
withUpdateTimestamp
Description copied from interface:ICanStartBuildingMeasuresStarts customizing theIMeasureHierarchy.TIMESTAMP_IDnative measure.- Specified by:
withUpdateTimestampin interfaceICanStartBuildingMeasures- Returns:
- The native measure customization builder.
-
withPostProcessor
Description copied from interface:ICanStartBuildingMeasuresAdds the description for a post-processor.- Specified by:
withPostProcessorin interfaceICanStartBuildingMeasures- Parameters:
name- The name of the post-processor.- Returns:
- builder for the post-processor description.
-
withPostProcessor
Description copied from interface:ICanStartBuildingMeasuresAdds the description for a post-processor.- Specified by:
withPostProcessorin interfaceICanStartBuildingMeasures- Parameters:
description- The description of the post-processor.- Returns:
- this builder for chaining.
-
withAggregatedMeasure
Description copied from interface:ICanStartBuildingMeasuresStarts building a pre-aggregated measure.- Specified by:
withAggregatedMeasurein interfaceICanStartBuildingMeasures- Returns:
- The pre-aggregated measure builder.
-
withAggregatedMeasure
Description copied from interface:ICanStartBuildingMeasuresAdds the description for a measure.- Specified by:
withAggregatedMeasurein interfaceICanStartBuildingMeasures- Parameters:
description- The description of the measure.- Returns:
- this builder for chaining.
-
withCalculations
Description copied from interface:ICanStartBuildingMeasuresAdds multiple measures and hierarchies via the Copper API.- Specified by:
withCalculationsin interfaceICanStartBuildingMeasures- Parameters:
calculations- the measure and hierarchy creation function- Returns:
- The builder for chained calls.
-