org.neodatis.odb.impl.core.query.nq
Class NativeQueryExecutionPlan
java.lang.Object
org.neodatis.odb.impl.core.query.nq.NativeQueryExecutionPlan
- All Implemented Interfaces:
- java.io.Serializable, IQueryExecutionPlan
public class NativeQueryExecutionPlan
- extends java.lang.Object
- implements IQueryExecutionPlan
A simple Criteria execution plan
Check if the query can use index and tries to find the best index to be used
- Author:
- osmadja
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classInfo
protected ClassInfo classInfo
useIndex
protected boolean useIndex
classInfoIndex
protected ClassInfoIndex classInfoIndex
query
protected IQuery query
start
protected long start
- to keep track of the start date time of the plan
end
protected long end
- to keep track of the end date time of the plan
NativeQueryExecutionPlan
public NativeQueryExecutionPlan(ClassInfo classInfo,
IQuery query)
init
protected void init()
getIndex
public ClassInfoIndex getIndex()
- Specified by:
getIndex
in interface IQueryExecutionPlan
useIndex
public boolean useIndex()
- Specified by:
useIndex
in interface IQueryExecutionPlan
getDetails
public java.lang.String getDetails()
- Specified by:
getDetails
in interface IQueryExecutionPlan
end
public void end()
- Specified by:
end
in interface IQueryExecutionPlan
getDuration
public long getDuration()
- Specified by:
getDuration
in interface IQueryExecutionPlan
start
public void start()
- Specified by:
start
in interface IQueryExecutionPlan