public interface Metrics
| Modifier and Type | Method and Description |
|---|---|
static Metrics |
empty()
Returns an empty metrics.
|
int |
getPipelineReductions()
Returns the number of pipeline reductions an optimizer was able to do.
|
default int |
getSqlCount()
Returns the sum of
getSqlWhileCount(), getSqlOrderCount()
, getSqlSkipCount() and getSqlLimitCount(). |
int |
getSqlLimitCount()
Returns the number of limit statements (0 or 1) in the SQL query.
|
int |
getSqlOrderCount()
Returns the number of order by columns in the SQL query.
|
int |
getSqlSkipCount()
Returns the number of skip statements (0 or 1) in the SQL query.
|
int |
getSqlWhileCount()
Returns the number of while predicate expressions in the SQL query.
|
static Metrics |
of(int pipelineReductions,
int sqlWhileCount,
int sqlOrderCount,
int sqlSkipCount,
int sqlLimitCount)
Creates and returns a new Metrics.
|
int getPipelineReductions()
0 should
be returned.int getSqlWhileCount()
int getSqlOrderCount()
int getSqlSkipCount()
int getSqlLimitCount()
default int getSqlCount()
getSqlWhileCount(), getSqlOrderCount()
, getSqlSkipCount() and getSqlLimitCount().getSqlWhileCount(), getSqlOrderCount()
, getSqlSkipCount() and getSqlLimitCount()static Metrics of(int pipelineReductions, int sqlWhileCount, int sqlOrderCount, int sqlSkipCount, int sqlLimitCount)
pipelineReductions - number of pipeline reductions that were madesqlWhileCount - the number of while predicatessqlOrderCount - the number of columns to sort bysqlSkipCount - the number of skip statements (0 or 1)sqlLimitCount - the number of limit statements (0 or 1)static Metrics empty()
Copyright © 2019 Speedment, Inc.. All rights reserved.