Interface CqnTopLevelsTransformation
- All Superinterfaces:
CqnTransformation
Transformation that determines top level instances that belong to a recursive
hierarchy.
The hierarchy is defined by the
hierarchy
reference
and the hierarchy qualifier
.
The transformation takes an input set consisting of instances that belong to
the hierarchy. The output retains nodes of the top n levels()
,
i.e. nodes with less then n ancestors.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.ql.cqn.transformation.CqnTransformation
CqnTransformation.Kind
-
Field Summary
Fields inherited from interface com.sap.cds.ql.cqn.transformation.CqnTransformation
IDENTITY
-
Method Summary
Modifier and TypeMethodDescriptionReturns the qualifier of theRecursiveHierarchy
annotationReturns a reference, which identifies the entities that form a recursive hierarchy.default CqnTransformation.Kind
kind()
Returns the kind of this transformationlong
levels()
Returns the number of levels, which the output set should containReturns a reference to the property that identifies the nodes of the hierarchy.
-
Method Details
-
hierarchyReference
CqnStructuredTypeRef hierarchyReference()Returns a reference, which identifies the entities that form a recursive hierarchy. The entity is annotated withRecursiveHierarchy
with a qualifier whose value is given by thehierarchyQualifier()
method.- Returns:
- a reference, which identifies the entities that form a recursive hierarchy
-
hierarchyQualifier
String hierarchyQualifier()Returns the qualifier of theRecursiveHierarchy
annotation- Returns:
- the hierarchy qualifier
-
nodeProperty
CqnElementRef nodeProperty()Returns a reference to the property that identifies the nodes of the hierarchy.- Returns:
- a reference to the node property
-
levels
long levels()Returns the number of levels, which the output set should contain- Returns:
- the number of levels
-
kind
Description copied from interface:CqnTransformation
Returns the kind of this transformation- Specified by:
kind
in interfaceCqnTransformation
- Returns:
- the kind of this transformation
-