Package com.sap.cds.ql.cqn
Interface AnalysisResult
-
- All Superinterfaces:
Iterable<ResolvedSegment>
,Path
public interface AnalysisResult extends Path
Contains the analysis result for aCqnStructuredTypeRef
orCqnStatement
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CdsEntity
rootEntity()
Returns theCdsEntity
that is the root of theref
.Map<String,Object>
rootKeys()
Returns the element name to value mapping for the key elements of theCdsEntity
that is the root of theref
.CdsEntity
targetEntity()
Returns theCdsEntity
targeted by theref
.Map<String,Object>
targetKeys()
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
.Map<String,Object>
targetKeyValues()
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
.Map<String,Object>
targetValues()
Returns the element name to value mapping for all elements of theCdsEntity
that is targeted by theref
.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
rootEntity
CdsEntity rootEntity()
Returns theCdsEntity
that is the root of theref
.- Returns:
- the root
CdsEntity
-
rootKeys
Map<String,Object> rootKeys()
Returns the element name to value mapping for the key elements of theCdsEntity
that is the root of theref
. Extracts the key values, i.e. the values of the key elements of the entity that is the root of theref
. If the filter does not uniquely restrict a key element to a particular value, the element's name is mapped tonull
.- Returns:
- a map relating all key element names to key values
-
targetKeys
Map<String,Object> targetKeys()
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
. Extracts the key values, i.e. the values of the key elements to the entity targeted by theref
and optionally the statement'swhere
condition. If the combined filter does not uniquely restrict a key element to a particular value, the element's name is mapped tonull
.- Returns:
- a map relating all key element names to key values
-
targetKeyValues
Map<String,Object> targetKeyValues()
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
. Extracts the key values, i.e. the values of the key elements to the entity targeted by theref
and optionally the statement'swhere
condition. If the combined filter does not uniquely restrict a key element to a particular value, the key name is not present in the returned map.- Returns:
- a map relating key element names to key values
-
targetValues
Map<String,Object> targetValues()
Returns the element name to value mapping for all elements of theCdsEntity
that is targeted by theref
. Extracts the values, i.e. the values of the elements to the entity targeted by theref
and optionally the statement'swhere
condition. If the combined filter does not uniquely restrict an element to a particular value, the element's name is not present in the returned map.- Returns:
- a map relating all element names to values
-
-