Class HierarchyIdentifier

    • Constructor Detail

      • 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 Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object