Class SubSelect

    • Constructor Detail

      • SubSelect

        public SubSelect()
    • Method Detail

      • distinct

        public SubSelect distinct​(boolean isDistinct)
        Specify if the query's projection should be distinct or not
        Parameters:
        isDistinct - if this query's projection should be distinct
        Returns:
        this
        See Also:
        Projection.distinct(boolean)
      • all

        public SubSelect all()
        Specify that this query's projection should select all in-scope expressions

        NOTE: setting this takes precedence over any expressions added to the projection via select(Projectable...) when printing

        Returns:
        this
        See Also:
        Projection.all()
      • all

        public SubSelect all​(boolean selectAll)
        Specify if this query's projection should select all in-scope expressions or not.

        NOTE: if called with true, this setting will take precedence over any expressions added to the projection via select(Projectable...) when printing

        Parameters:
        selectAll - if all in-scope expressions should be selected
        Returns:
        this
        See Also:
        Projection.all(boolean)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface GraphPattern
        Returns:
        if this pattern is a collection of GraphPatterns (ie., Group or Alternative patterns), returns if the collection contains any patterns