|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.query.QueryResults.Statistics
@Immutable public static class QueryResults.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. |
String |
toString()
|
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 nullpublic 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 negative
public 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 negative
public 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 negative
public 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 negative
public 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 ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||