Class GenericPlanNode

java.lang.Object
org.eclipse.rdf4j.query.explanation.GenericPlanNode

@Experimental public class GenericPlanNode extends Object
This is an experimental feature. The interface may be changed, moved or potentially removed in a future release.

The interface is used to implement query explanations (query plan)

Since:
3.2.0
  • Field Details Link icon

  • Constructor Details Link icon

    • GenericPlanNode Link icon

      public GenericPlanNode()
    • GenericPlanNode Link icon

      public GenericPlanNode(String type)
  • Method Details Link icon

    • getType Link icon

      public String getType()
    • setType Link icon

      public void setType(String type)
    • getPlans Link icon

      public List<GenericPlanNode> getPlans()
    • setPlans Link icon

      public void setPlans(List<GenericPlanNode> plans)
    • addPlans Link icon

      public void addPlans(GenericPlanNode... children)
    • getCostEstimate Link icon

      public Double getCostEstimate()
      The cost estimate that the query planner calculated for this node. Value has no meaning outside of this explanation and is only used to compare and order the nodes in the query plan.
      Returns:
      a cost estimate as a double value
    • setCostEstimate Link icon

      public void setCostEstimate(Double costEstimate)
    • getResultSizeEstimate Link icon

      public Double getResultSizeEstimate()
      The number of results that this node was estimated to produce.
      Returns:
      result size estimate
    • setResultSizeEstimate Link icon

      public void setResultSizeEstimate(Double resultSizeEstimate)
    • getResultSizeActual Link icon

      public Long getResultSizeActual()
      The actual number of results that this node produced while the query was executed.
      Returns:
      number of results that this query produced
    • setResultSizeActual Link icon

      public void setResultSizeActual(Long resultSizeActual)
    • getTotalTimeActual Link icon

      public Double getTotalTimeActual()
      The total time in milliseconds that this node-tree (all children and so on) used while the query was executed.
      Returns:
      time in milliseconds that was used to execute the query
    • setTotalTimeActual Link icon

      public void setTotalTimeActual(Double totalTimeActual)
    • setTimedOut Link icon

      public void setTimedOut(Boolean timedOut)
    • getTimedOut Link icon

      public Boolean getTimedOut()
    • getSelfTimeActual Link icon

      public Double getSelfTimeActual()
      The time that this node used by itself (eg. totalTimeActual - sum of plans[0..n].totalTimeActual)
    • isNewScope Link icon

      public Boolean isNewScope()
      Returns:
      true if this node introduces a new scope
    • setNewScope Link icon

      public void setNewScope(boolean newScope)
    • getAlgorithm Link icon

      public String getAlgorithm()
      Join nodes can use various algorithms for joining data.
      Returns:
      the name of the algorithm.
    • setAlgorithm Link icon

      public void setAlgorithm(String algorithm)
    • toString Link icon

      public String toString()
      Human readable string. Do not attempt to parse this.
      Overrides:
      toString in class Object
      Returns:
      an unparsable string
    • toDot Link icon

      public String toDot()
    • getID Link icon

      public String getID()