org.apache.derby.impl.sql
Class GenericPreparedStatement.RowCountStatistics
java.lang.Object
org.apache.derby.impl.sql.GenericPreparedStatement.RowCountStatistics
- Enclosing class:
- GenericPreparedStatement
private static class GenericPreparedStatement.RowCountStatistics
- extends java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stalePlanCheckInterval
private int stalePlanCheckInterval
executionCount
private int executionCount
rowCounts
private java.util.ArrayList rowCounts
GenericPreparedStatement.RowCountStatistics
private GenericPreparedStatement.RowCountStatistics()
incrementExecutionCount
int incrementExecutionCount()
- See Also:
ExecPreparedStatement.incrementExecutionCount()
getInitialRowCount
long getInitialRowCount(int rsNum,
long rowCount)
- See Also:
ExecPreparedStatement.getInitialRowCount(int, long)
setStalePlanCheckInterval
void setStalePlanCheckInterval(int interval)
- See Also:
ExecPreparedStatement.setStalePlanCheckInterval(int)
getStalePlanCheckInterval
int getStalePlanCheckInterval()
- See Also:
ExecPreparedStatement.getStalePlanCheckInterval()
reset
void reset()
- Reset all the row count statistics.
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.