Package org.apache.derby.impl.sql
Class GenericPreparedStatement.RowCountStatistics
java.lang.Object
org.apache.derby.impl.sql.GenericPreparedStatement.RowCountStatistics
- Enclosing class:
GenericPreparedStatement
This class holds information about stale plan check interval,
execution count and row count statistics for a GenericPreparedStatement.
The fields and methods should ideally live in GenericPreparedStatement,
not in a separate class. However, triggers clone the GPS on each
execution, which means the statistics would be reset on each execution
if they lived directly inside GPS. Instead, keep the statistics in an
object that can be shared between multiple GPS instances when they
are cloned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long
getInitialRowCount
(int rsNum, long rowCount) (package private) int
(package private) int
(package private) void
reset()
Reset all the row count statistics.(package private) void
setStalePlanCheckInterval
(int interval)
-
Field Details
-
stalePlanCheckInterval
private int stalePlanCheckInterval -
executionCount
private int executionCount -
rowCounts
-
-
Constructor Details
-
RowCountStatistics
private RowCountStatistics()
-
-
Method Details
-
incrementExecutionCount
int incrementExecutionCount()- See Also:
-
getInitialRowCount
long getInitialRowCount(int rsNum, long rowCount) - See Also:
-
setStalePlanCheckInterval
void setStalePlanCheckInterval(int interval) - See Also:
-
getStalePlanCheckInterval
int getStalePlanCheckInterval()- See Also:
-
reset
void reset()Reset all the row count statistics.
-