Skip to main content
Cube configuration defines the analytical model that users query. This includes dimensions, hierarchies, levels, and measures, configured using the IModelConfigurer interface.

Prerequisites

Before configuring cubes, make sure:
  • The database is configured (see configure the database)
  • Basic Atoti concepts are understood (cubes, dimensions, hierarchies, measures)

What is the IModelConfigurer interface?

Configuration is handled through a Spring bean that implements the IModelConfigurer interface. The configureCubes() method receives an ICubeManagerConfigurator that defines cubes, dimensions, and measures. See the Javadoc for the complete list of available methods.

How to create a cube

Use ICubeManagerConfigurator.addCube() to create a cube. Specify the cube name and the fact table. The method returns an ICubeConfigurator for configuring dimensions and measures.

How to access an existing cube

Use ICubeManagerConfigurator.cube() to get the configurator for an existing cube. This is useful when modifying cubes from a predefined configuration.