Class GenericPlanNode
java.lang.Object
org.eclipse.rdf4j.query.explanation.GenericPlanNode
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlans
(GenericPlanNode... children) Join nodes can use various algorithms for joining data.The cost estimate that the query planner calculated for this node.getID()
getPlans()
The actual number of results that this node produced while the query was executed.The number of results that this node was estimated to produce.The time that this node used by itself (eg.The total time in milliseconds that this node-tree (all children and so on) used while the query was executed.getType()
void
setAlgorithm
(String algorithm) void
setCostEstimate
(Double costEstimate) void
setNewScope
(boolean newScope) void
setPlans
(List<GenericPlanNode> plans) void
setResultSizeActual
(Long resultSizeActual) void
setResultSizeEstimate
(Double resultSizeEstimate) void
setTimedOut
(Boolean timedOut) void
setTotalTimeActual
(Double totalTimeActual) void
toDot()
toString()
Human readable string.
-
Field Details
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
GenericPlanNode
public GenericPlanNode() -
GenericPlanNode
-
-
Method Details
-
getType
-
setType
-
getPlans
-
setPlans
-
addPlans
-
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
-
getResultSizeEstimate
The number of results that this node was estimated to produce.- Returns:
- result size estimate
-
setResultSizeEstimate
-
getResultSizeActual
The actual number of results that this node produced while the query was executed.- Returns:
- number of results that this query produced
-
setResultSizeActual
-
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
-
setTimedOut
-
getTimedOut
-
getSelfTimeActual
The time that this node used by itself (eg. totalTimeActual - sum of plans[0..n].totalTimeActual) -
isNewScope
- Returns:
- true if this node introduces a new scope
-
setNewScope
public void setNewScope(boolean newScope) -
getAlgorithm
Join nodes can use various algorithms for joining data.- Returns:
- the name of the algorithm.
-
setAlgorithm
-
toString
Human readable string. Do not attempt to parse this. -
toDot
-
getID
-