| java.lang.Object org.apache.derbyTesting.functionTests.tests.store.BaseTest org.apache.derbyTesting.functionTests.tests.store.OnlineCompressTest
All known Subclasses: org.apache.derbyTesting.functionTests.tests.store.oc_rec2, org.apache.derbyTesting.functionTests.tests.store.oc_rec1, org.apache.derbyTesting.functionTests.tests.store.oc_rec4, org.apache.derbyTesting.functionTests.tests.store.oc_rec3,
OnlineCompressTest | public class OnlineCompressTest extends BaseTest (Code) | | |
Method Summary | |
protected void | callCompress(Connection conn, String schemaName, String tableName, boolean purgeRows, boolean defragmentRows, boolean truncateEnd, boolean commit_operation) call SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE() system procedure. | protected void | createAndLoadTable(Connection conn, boolean create_table, String tblname, int num_rows, int start_value) Create and load a table.
If create_table is set creates a test data table with indexes.
Loads num_rows into the table. | public static void | main(String[] argv) | public void | testList(Connection conn) |
OnlineCompressTest | public OnlineCompressTest()(Code) | | |
callCompress | protected void callCompress(Connection conn, String schemaName, String tableName, boolean purgeRows, boolean defragmentRows, boolean truncateEnd, boolean commit_operation) throws SQLException(Code) | | call SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE() system procedure.
Utility test function to call the system procedure.
|
createAndLoadTable | protected void createAndLoadTable(Connection conn, boolean create_table, String tblname, int num_rows, int start_value) throws SQLException(Code) | | Create and load a table.
If create_table is set creates a test data table with indexes.
Loads num_rows into the table. This table defaults to 32k page size.
This schema fits 25 rows per page
Parameters: conn - Connection to use for sql execution. Parameters: create_table - If true, create new table - otherwise load intoexisting table. Parameters: tblname - table to use. Parameters: num_rows - number of rows to add to the table. exception: StandardException - Standard exception policy. |
Methods inherited from org.apache.derbyTesting.functionTests.tests.store.BaseTest | protected void beginTest(Connection conn, String str) throws SQLException(Code)(Java Doc) protected boolean checkAllConsistency(Connection conn) throws SQLException(Code)(Java Doc) protected boolean checkConsistency(Connection conn, String schemaName, String tableName) throws SQLException(Code)(Java Doc) protected void createDebugSystemProcedures(Connection conn) throws SQLException(Code)(Java Doc) public void createTable(Connection conn, String tbl_name, String create_str) throws SQLException(Code)(Java Doc) String dump_table(Connection conn, String schemaName, String tableName, boolean commit_transaction) throws SQLException(Code)(Java Doc) protected void endTest(Connection conn, String str) throws SQLException(Code)(Java Doc) public void executeQuery(Connection conn, String stmt_str, boolean commit_query) throws SQLException(Code)(Java Doc) protected int[] getSpaceInfo(Connection conn, String schemaName, String tableName, boolean commit_xact) throws SQLException(Code)(Java Doc) protected String get_lock_info(Connection conn, boolean include_system_locks) throws SQLException(Code)(Java Doc) protected void log(String str)(Code)(Java Doc) protected void logError(String str)(Code)(Java Doc) void runTests(String[] argv) throws Throwable(Code)(Java Doc) abstract public void testList(Connection conn) throws SQLException(Code)(Java Doc) protected void testProgress(String str) throws SQLException(Code)(Java Doc) protected int total_pages(int[] space_info)(Code)(Java Doc)
|
|
|