org.neodatis.odb.impl.core.query.nq
Class NativeQueryExecutionPlan

java.lang.Object
  extended by 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

Field Summary
protected  ClassInfo classInfo
           
protected  ClassInfoIndex classInfoIndex
           
protected  long end
          to keep track of the end date time of the plan
protected  IQuery query
           
protected  long start
          to keep track of the start date time of the plan
protected  boolean useIndex
           
 
Constructor Summary
NativeQueryExecutionPlan(ClassInfo classInfo, IQuery query)
           
 
Method Summary
 void end()
           
 java.lang.String getDetails()
           
 long getDuration()
           
 ClassInfoIndex getIndex()
           
protected  void init()
           
 void start()
           
 boolean useIndex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

NativeQueryExecutionPlan

public NativeQueryExecutionPlan(ClassInfo classInfo,
                                IQuery query)
Method Detail

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