|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.QueryResults.Statistics
@Immutable public static class QueryResults.Statistics
Field Summary | |
---|---|
protected static QueryResults.Statistics |
EMPTY_STATISTICS
|
Constructor Summary | |
---|---|
QueryResults.Statistics()
|
|
QueryResults.Statistics(long planningNanos)
|
|
QueryResults.Statistics(long planningNanos,
long optimizationNanos,
long resultFormulationNanos,
long executionNanos)
|
Method Summary | |
---|---|
int |
compareTo(QueryResults.Statistics that)
|
long |
getExecutionTime(TimeUnit unit)
Get the time required to execute the query. |
long |
getOptimizationTime(TimeUnit unit)
Get the time required to determine or select a (more) optimal plan. |
long |
getPlanningTime(TimeUnit unit)
Get the time required to come up with the canonical plan. |
long |
getResultFormulationTime(TimeUnit unit)
Get the time required to formulate the structure of the results. |
long |
getTotalTime(TimeUnit unit)
Get the time required to execute the query. |
protected void |
readable(long nanos,
StringBuilder sb)
|
String |
toString()
|
protected long |
totalTime()
|
QueryResults.Statistics |
withExecutionTime(long executionNanos)
Create a new statistics object that has the supplied execution time. |
QueryResults.Statistics |
withExecutionTime(long execution,
TimeUnit unit)
Create a new statistics object that has the supplied execution time. |
QueryResults.Statistics |
withOptimizationTime(long optimizationNanos)
Create a new statistics object that has the supplied optimization time. |
QueryResults.Statistics |
withOptimizationTime(long optimization,
TimeUnit unit)
Create a new statistics object that has the supplied optimization time. |
QueryResults.Statistics |
withPlanningTime(long planningNanos)
Create a new statistics object that has the supplied planning time. |
QueryResults.Statistics |
withPlanningTime(long planning,
TimeUnit unit)
Create a new statistics object that has the supplied planning time. |
QueryResults.Statistics |
withResultsFormulationTime(long resultFormulationNanos)
Create a new statistics object that has the supplied result formulation time. |
QueryResults.Statistics |
withResultsFormulationTime(long resultFormulation,
TimeUnit unit)
Create a new statistics object that has the supplied result formulation time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final QueryResults.Statistics EMPTY_STATISTICS
Constructor Detail |
---|
public QueryResults.Statistics()
public QueryResults.Statistics(long planningNanos)
public QueryResults.Statistics(long planningNanos, long optimizationNanos, long resultFormulationNanos, long executionNanos)
Method Detail |
---|
public long getPlanningTime(TimeUnit unit)
unit
- the time unit that should be used
IllegalArgumentException
- if the unit is nullpublic long getOptimizationTime(TimeUnit unit)
unit
- the time unit that should be used
IllegalArgumentException
- if the unit is nullpublic long getResultFormulationTime(TimeUnit unit)
unit
- the time unit that should be used
IllegalArgumentException
- if the unit is nullpublic long getExecutionTime(TimeUnit unit)
unit
- the time unit that should be used
IllegalArgumentException
- if the unit is nullpublic long getTotalTime(TimeUnit unit)
unit
- the time unit that should be used
IllegalArgumentException
- if the unit is nullprotected long totalTime()
public QueryResults.Statistics withPlanningTime(long planningNanos)
planningNanos
- the number of nanoseconds required by planning
IllegalArgumentException
- if the time value is negativepublic QueryResults.Statistics withOptimizationTime(long optimizationNanos)
optimizationNanos
- the number of nanoseconds required by optimization
IllegalArgumentException
- if the time value is negativepublic QueryResults.Statistics withResultsFormulationTime(long resultFormulationNanos)
resultFormulationNanos
- the number of nanoseconds required by result formulation
IllegalArgumentException
- if the time value is negativepublic QueryResults.Statistics withExecutionTime(long executionNanos)
executionNanos
- the number of nanoseconds required to execute the query
IllegalArgumentException
- if the time value is negativepublic QueryResults.Statistics withPlanningTime(long planning, TimeUnit unit)
planning
- the time required to plan the queryunit
- the time unit
IllegalArgumentException
- if the unit is null or if the time value is negativepublic QueryResults.Statistics withOptimizationTime(long optimization, TimeUnit unit)
optimization
- the time required by optimizationunit
- the time unit
IllegalArgumentException
- if the unit is null or if the time value is negativepublic QueryResults.Statistics withResultsFormulationTime(long resultFormulation, TimeUnit unit)
resultFormulation
- the time required to formulate the resultsunit
- the time unit
IllegalArgumentException
- if the unit is null or if the time value is negativepublic QueryResults.Statistics withExecutionTime(long execution, TimeUnit unit)
execution
- the time required to execute the queryunit
- the time unit
IllegalArgumentException
- if the unit is null or if the time value is negativepublic int compareTo(QueryResults.Statistics that)
compareTo
in interface Comparable<QueryResults.Statistics>
Comparable.compareTo(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
protected void readable(long nanos, StringBuilder sb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |