Class Dimension<T>

  • Type Parameters:
    T - The value type supported for the dimension

    public class Dimension<T>
    extends Object
    A typed dimension to a cube, which is constructed with a unique key. This key defines the HTTP parameter name during serialization, and the type is respected by the ReadBuilder during lookups.
    • Constructor Detail

      • Dimension

        public Dimension​(String key,
                         Class<T> type)
        Force the provision of the key in construction, which should be unique for the cube.
        Parameters:
        key - Which is used in the HTTP parameters
        type - For the dimension, stored to enable runtime checking where required
      • Dimension

        public Dimension()
        Prefer use of the constructor taking the parameters over this method. This is provided to allow easy Jackson serialization.