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 theRecursiveHierarchyannotationReturns a reference, which identifies the entities that form a recursive hierarchy.default CqnTransformation.Kindkind()Returns the kind of this transformationlonglevels()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 withRecursiveHierarchywith 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 theRecursiveHierarchyannotation- 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 or -1 if unlimited
-
kind
Description copied from interface:CqnTransformationReturns the kind of this transformation- Specified by:
kindin interfaceCqnTransformation- Returns:
- the kind of this transformation
-