Package com.activeviam.copper
Class HierarchyIdentifier
java.lang.Object
com.activeviam.copper.HierarchyIdentifier
- All Implemented Interfaces:
Serializable
The identifier of a hierarchy in a cube.
- Author:
- ActiveViam
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charUsed to escapeDESCRIPTION_SEPARATOR.static final charfinal StringThe name of the dimension containing the hierarchy.final StringThe name of the hierarchy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HierarchyIdentifierfromDescription(@NonNull String description) Parses a description to convert it to aHierarchyIdentifier.inthashCode()static HierarchyIdentifierCreates a hierarchy identifier for simple hierarchy where the dimension and hierarchy share the same name.Produces a description that can be used in post-processors definitions.static StringtoDescription(String dimension, String hierarchy) Produces a description that can be used in post-processors definitions.toString()
-
Field Details
-
DESCRIPTION_SEPARATOR
public static final char DESCRIPTION_SEPARATOR- See Also:
-
DESCRIPTION_ESCAPING_CHAR
public static final char DESCRIPTION_ESCAPING_CHARUsed to escapeDESCRIPTION_SEPARATOR.- See Also:
-
dimension
The name of the dimension containing the hierarchy. -
hierarchy
The name of the hierarchy.
-
-
Constructor Details
-
HierarchyIdentifier
Constructor.- Parameters:
dimension- the name of the dimension containing the hierarchyhierarchy- the name of the hierarchy
-
-
Method Details
-
simple
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
Produces a description that can be used in post-processors definitions.- Returns:
- the description
-
toDescription
Produces a description that can be used in post-processors definitions.- Parameters:
dimension- the name of the dimension containing the hierarchyhierarchy- the name of the hierarchy- Returns:
- the description
-
fromDescription
Parses a description to convert it to aHierarchyIdentifier.- Parameters:
description- the description- Returns:
- the corresponding coordinate
-
toString
-
equals
-
hashCode
public int hashCode()
-