Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.RuntimeStatisticsParser.findString()


                { "3", "6" }, { "4", "-8" }, { "4", "8" }, { "5", "10" } };

        JDBC.assertFullResultSet(rs, expRS, true);
        p = SQLUtilities.getRuntimeStatisticsParser(st);
        // Expect to see scalar qualifiers with <= operator for four scans.
        p.findString("Operator: <=", 4);
        //  In this
        // case there are no qualifiers, but the restriction is
        // enforced at the ProjectRestrictNode level. That hasn't
        // changed with DERBY-805.
View Full Code Here


                    SQLUtilities.getRuntimeStatisticsParser(s);
            // Before DERBY-4204 the assert below would fail for some kinds
            // of statements because the statistics for the previous call to
            // SYSCS_GET_RUNTIMESTATISTICS() would be returned instead of the
            // statistics for the previously executed statement.
            assertTrue("Wrong statement", rtsp.findString(sql, 1));
        }
    }

    /**
     * Test that runtime statistics are collected on re-execution of a
View Full Code Here

            {
                assertTrue(rtsp.usedIndexScan());
                assertTrue(rtsp.usedConstraintForIndexScan(
                        expTableInIndexScan));
            }
            assertTrue(rtsp.findString("Bit set of columns fetched="+expBits, 1));
            assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
View Full Code Here

                assertTrue(rtsp.usedIndexScan());
                assertTrue(rtsp.usedConstraintForIndexScan(
                        expTableInIndexScan));
            }
            assertTrue(rtsp.findString("Bit set of columns fetched="+expBits, 1));
            assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
            assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
View Full Code Here

                        expTableInIndexScan));
            }
            assertTrue(rtsp.findString("Bit set of columns fetched="+expBits, 1));
            assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
            assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
            assertTrue(rtsp.findString("Scan type="+expScanType, 1));
            assertTrue(rtsp.getStartPosition()[1].indexOf(expStartPosition)>1);
View Full Code Here

            }
            assertTrue(rtsp.findString("Bit set of columns fetched="+expBits, 1));
            assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
            assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
            assertTrue(rtsp.findString("Scan type="+expScanType, 1));
            assertTrue(rtsp.getStartPosition()[1].indexOf(expStartPosition)>1);
            assertTrue(rtsp.getStopPosition()[1].indexOf(expStopPosition)>1);
View Full Code Here

            assertTrue(rtsp.findString("Bit set of columns fetched="+expBits, 1));
            assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
            assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
            assertTrue(rtsp.findString("Scan type="+expScanType, 1));
            assertTrue(rtsp.getStartPosition()[1].indexOf(expStartPosition)>1);
            assertTrue(rtsp.getStopPosition()[1].indexOf(expStopPosition)>1);
View Full Code Here

            assertTrue(rtsp.findString("Number of columns fetched="+expNumCols, 1));
            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
            assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
            assertTrue(rtsp.findString("Scan type="+expScanType, 1));
            assertTrue(rtsp.getStartPosition()[1].indexOf(expStartPosition)>1);
            assertTrue(rtsp.getStopPosition()[1].indexOf(expStopPosition)>1);

            if (expQualifier.equals("None"))
View Full Code Here

            if (expDelRowsV!=null)
                assertTrue(rtsp.findString("Number of deleted rows visited="+expDelRowsV, 1));
            assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));
            assertTrue(rtsp.findString("Number of rows qualified="+expRowsQ, 1));           
            assertTrue(rtsp.findString("Number of rows visited="+expRowsV, 1));
            assertTrue(rtsp.findString("Scan type="+expScanType, 1));
            assertTrue(rtsp.getStartPosition()[1].indexOf(expStartPosition)>1);
            assertTrue(rtsp.getStopPosition()[1].indexOf(expStopPosition)>1);

            if (expQualifier.equals("None"))
                assertTrue(rtsp.hasNoQualifiers());
View Full Code Here

            if (expQualifier.equals("None"))
                assertTrue(rtsp.hasNoQualifiers());
            else if (expQualifier.equals("Equals"))
                assertTrue(rtsp.hasEqualsQualifier());
            if (expQualifierInfo !=null)
                assertTrue(rtsp.findString(expQualifierInfo, 1));
        }
    }
   
    private void runQueriesNormal(Statement st) throws SQLException {
        doQuery1(st);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.