Package com.activeviam.copper
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static charDESCRIPTION_ESCAPING_CHARUsed to escapeDESCRIPTION_SEPARATOR.static charDESCRIPTION_SEPARATORStringdimensionThe name of the dimension containing the hierarchy.StringhierarchyThe name of the hierarchy.
-
Constructor Summary
Constructors Constructor Description HierarchyIdentifier(String dimension, String hierarchy)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static HierarchyIdentifierfromDescription(@NonNull String description)Parses a description to convert it to aHierarchyIdentifier.inthashCode()static HierarchyIdentifiersimple(String hierarchy)Creates a hierarchy identifier for simple hierarchy where the dimension and hierarchy share the same name.StringtoDescription()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.StringtoString()
-
-
-
Field Detail
-
DESCRIPTION_SEPARATOR
public static final char DESCRIPTION_SEPARATOR
- See Also:
- Constant Field Values
-
DESCRIPTION_ESCAPING_CHAR
public static final char DESCRIPTION_ESCAPING_CHAR
Used to escapeDESCRIPTION_SEPARATOR.- See Also:
- Constant Field Values
-
dimension
public final String dimension
The name of the dimension containing the hierarchy.
-
hierarchy
public final String 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 hierarchyhierarchy- the name of the hierarchy- Returns:
- the description
-
fromDescription
public static HierarchyIdentifier fromDescription(@NonNull @NonNull String description)
Parses a description to convert it to aHierarchyIdentifier.- Parameters:
description- the description- Returns:
- the corresponding coordinate
-
-