> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryCubeDefinition

> atoti.QueryCubeDefinition(\
>
>     *cluster*: HasIdentifier\[ClusterIdentifier] | ClusterIdentifier,\
>
>     \*,\
>
>     *distributing\_levels*: [Set](https://docs.python.org/3/library/collections.abc.html#collections.abc.Set)\[[tuple](https://docs.python.org/3/builtins/stdtypes.html#tuple)\[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [str](https://docs.python.org/3/builtins/stdtypes.html#str), [str](https://docs.python.org/3/builtins/stdtypes.html#str)]] = `frozenset({})`,\
>
>     *allow\_data\_duplication*: [bool](https://docs.python.org/3/builtins/functions.html#bool) = `False`,\
>
> )

The definition to create a [`QueryCube`](./atoti.distribution.QueryCube#atoti.QueryCube).

### Attributes

#### *cluster*

Cluster joined by the query cube.

#### *distributing\_levels*

The [`distributing_levels`](./atoti.distribution.QueryCube.distributing_levels#atoti.QueryCube.distributing_levels).

#### *allow\_data\_duplication*

Whether to allow multiple data cubes in the same cluster to share some members in the [`distributing_levels`](#atoti.QueryCubeDefinition.distributing_levels).

If `True`, the priority of each data node can be configured when calling [`atoti.Session.create_cube()`](./atoti.Session.create_cube#atoti.Session.create_cube).

See the [Atoti Server docs](https://docs.activeviam.com/engine/java-sdk/6.2/distributed/data_overlap.md) for more information.
