Class IrSelect

java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.ir.IrNode
org.eclipse.rdf4j.queryrender.sparql.ir.IrSelect

public class IrSelect extends IrNode
Textual IR for a SELECT query (header + WHERE + trailing modifiers). The WHERE body is an IrBGP. Header sections keep rendered expressions as text to preserve the exact surface form chosen by the renderer.
  • Constructor Details

    • IrSelect

      public IrSelect(boolean newScope)
  • Method Details

    • setDistinct

      public void setDistinct(boolean distinct)
    • setReduced

      public void setReduced(boolean reduced)
    • getProjection

      public List<IrProjectionItem> getProjection()
    • getWhere

      public IrBGP getWhere()
    • setWhere

      public void setWhere(IrBGP bgp)
    • getGroupBy

      public List<IrGroupByElem> getGroupBy()
    • getHaving

      public List<String> getHaving()
    • getOrderBy

      public List<IrOrderSpec> getOrderBy()
    • getLimit

      public long getLimit()
    • setLimit

      public void setLimit(long limit)
    • getOffset

      public long getOffset()
    • setOffset

      public void setOffset(long offset)
    • transformChildren

      public IrNode transformChildren(UnaryOperator<IrNode> op)
      Description copied from class: IrNode
      Function-style child transformation hook used by the transform pipeline to descend into nested structures. Contract: - Leaf nodes return this unchanged. - Container nodes return a new instance with their immediate children transformed using the provided operator. - Implementations must not mutate this or its existing children.
      Overrides:
      transformChildren in class IrNode
    • print

      public void print(IrPrinter p)
      Description copied from class: IrNode
      Default no-op printing; concrete nodes override.
      Specified by:
      print in class IrNode
    • getVars

      public Set<Var> getVars()
      Description copied from class: IrNode
      Collect variables referenced by this node and all of its children (if any). Default implementation returns an empty set; container and triple-like nodes override to include their own Vars and recurse into child nodes.
      Overrides:
      getVars in class IrNode
    • isDistinct

      public boolean isDistinct()
    • isReduced

      public boolean isReduced()