Interface HANA


@Beta public interface HANA
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HanaSupport
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    ancestors(Hierarchy hierarchy)
    Returns a function to compute the subset of a given hierarchy, which contains all nodes that are ancestors of a of start nodes set
    Returns a function to compute the subset of a given hierarchy, which contains all nodes that are ancestors of a start nodes set.
    Returns a function to compute the subset of a given hierarchy, which contains all nodes that are descendants of a set of start nodes
    Returns a function to compute the subset of a given hierarchy, which contains all nodes that are descendants of a set of start nodes
    static Hierarchy
    hierarchy(Source<?> source)
    Returns a function that generates a hierarchy based on recursive parent-child source data.
  • Field Details

  • Method Details

    • hierarchy

      static Hierarchy hierarchy(Source<?> source)
      Returns a function that generates a hierarchy based on recursive parent-child source data.
      Parameters:
      source - the source that the hierarchy is to be generated from
    • ancestors

      static HierarchySubset ancestors(Hierarchy hierarchy)
      Returns a function to compute the subset of a given hierarchy, which contains all nodes that are ancestors of a of start nodes set
      Parameters:
      hierarchy - the source hierarchy
      Returns:
      a hierarchy navigation function to compute the ancestors
    • ancestors

      static HierarchySubset ancestors(StructuredType<?> entity)
      Returns a function to compute the subset of a given hierarchy, which contains all nodes that are ancestors of a start nodes set. The source is an entity, which containing all of the basic hierarchy attributes computed by a hierarchy(com.sap.cds.ql.Source<?>) generation function
      Parameters:
      entity - the entity
      Returns:
      a hierarchy navigation function to compute the ancestors
    • descendants

      static HierarchySubset descendants(Hierarchy hierarchy)
      Returns a function to compute the subset of a given hierarchy, which contains all nodes that are descendants of a set of start nodes
      Parameters:
      hierarchy - the source hierarchy
      Returns:
      a hierarchy navigation function to compute the descendants
    • descendants

      static HierarchySubset descendants(StructuredType<?> entity)
      Returns a function to compute the subset of a given hierarchy, which contains all nodes that are descendants of a set of start nodes
      Parameters:
      entity - the source hierarchy
      Returns:
      a hierarchy navigation function to compute the descendants