Package com.mckoi.database
Class QueryPlan.CachePointNode
- java.lang.Object
-
- com.mckoi.database.QueryPlan.SingleQueryPlanNode
-
- com.mckoi.database.QueryPlan.CachePointNode
-
- All Implemented Interfaces:
QueryPlanNode
,java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- QueryPlan
public static class QueryPlan.CachePointNode extends QueryPlan.SingleQueryPlanNode
A cache point node that only evaluates the child if the result can not be found in the cache with the given unique id.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static int
GLOB_ID
private static java.lang.Object
GLOB_LOCK
private long
id
The unique identifier of this cache point.(package private) static long
serialVersionUID
-
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child
-
-
Constructor Summary
Constructors Constructor Description CachePointNode(QueryPlanNode child)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Deep clone.Table
evaluate(QueryContext context)
Evaluates the node and returns the result as a Table.java.lang.String
titleString()
-
Methods inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child, debugString, discoverCorrelatedVariables, discoverTableNames
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private long id
The unique identifier of this cache point.
-
GLOB_LOCK
private static final java.lang.Object GLOB_LOCK
-
GLOB_ID
private static int GLOB_ID
-
-
Constructor Detail
-
CachePointNode
public CachePointNode(QueryPlanNode child)
Constructor.
-
-
Method Detail
-
evaluate
public Table evaluate(QueryContext context)
Description copied from interface:QueryPlanNode
Evaluates the node and returns the result as a Table. The VariableResolver resolves any outer variables
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Description copied from class:QueryPlan.SingleQueryPlanNode
Deep clone.- Specified by:
clone
in interfaceQueryPlanNode
- Overrides:
clone
in classQueryPlan.SingleQueryPlanNode
- Throws:
java.lang.CloneNotSupportedException
-
titleString
public java.lang.String titleString()
- Overrides:
titleString
in classQueryPlan.SingleQueryPlanNode
-
-