Class HierarchyIdentifier

java.lang.Object
com.activeviam.copper.HierarchyIdentifier
All Implemented Interfaces:
Serializable

public class HierarchyIdentifier extends Object implements Serializable
The identifier of a hierarchy in a cube.
Author:
ActiveViam
See Also:
  • Field Details

  • Constructor Details

    • HierarchyIdentifier

      public HierarchyIdentifier(String dimension, String hierarchy)
      Constructor.
      Parameters:
      dimension - the name of the dimension containing the hierarchy
      hierarchy - the name of the hierarchy
  • Method Details

    • simple

      public static HierarchyIdentifier simple(String hierarchy)
      Creates a hierarchy identifier for simple hierarchy where the dimension and hierarchy share the same name.
      Parameters:
      hierarchy - name of the hierarchy (and dimension)
      Returns:
      created coordinate
    • toDescription

      public String toDescription()
      Produces a description that can be used in post-processors definitions.
      Returns:
      the description
    • toDescription

      public static String toDescription(String dimension, String hierarchy)
      Produces a description that can be used in post-processors definitions.
      Parameters:
      dimension - the name of the dimension containing the hierarchy
      hierarchy - the name of the hierarchy
      Returns:
      the description
    • fromDescription

      public static HierarchyIdentifier fromDescription(@NonNull @NonNull String description)
      Parses a description to convert it to a HierarchyIdentifier.
      Parameters:
      description - the description
      Returns:
      the corresponding coordinate
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object