Examples of findString()


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

            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

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

            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

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

            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

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

            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

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

                    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));
        }
        if (schema != null)
        {
            // Before DERBY-4204, we would only get a single row for some
            // kinds of statements, because the statistics weren't re-captured.
View Full Code Here

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

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

                "and t1.twenty = t2.twenty and " +
                "t2.two = t3.two").close();
        checkEstimatedRowCount(conn,1.606007503125E7);
        RuntimeStatisticsParser rtsp =
                SQLUtilities.getRuntimeStatisticsParser(s);
        assertTrue(rtsp.findString("Table Scan ResultSet for T1", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={0, 2, 3}", 1));
        assertTrue(rtsp.findString("Hash Scan ResultSet for T2", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={1, 2, 3}", 1));
        assertTrue(rtsp.findString(
                "Hash Scan ResultSet for T3 using index T3_TWO_TWENTY", 1));
View Full Code Here

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

                "t2.two = t3.two").close();
        checkEstimatedRowCount(conn,1.606007503125E7);
        RuntimeStatisticsParser rtsp =
                SQLUtilities.getRuntimeStatisticsParser(s);
        assertTrue(rtsp.findString("Table Scan ResultSet for T1", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={0, 2, 3}", 1));
        assertTrue(rtsp.findString("Hash Scan ResultSet for T2", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={1, 2, 3}", 1));
        assertTrue(rtsp.findString(
                "Hash Scan ResultSet for T3 using index T3_TWO_TWENTY", 1));
       
View Full Code Here

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

        checkEstimatedRowCount(conn,1.606007503125E7);
        RuntimeStatisticsParser rtsp =
                SQLUtilities.getRuntimeStatisticsParser(s);
        assertTrue(rtsp.findString("Table Scan ResultSet for T1", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={0, 2, 3}", 1));
        assertTrue(rtsp.findString("Hash Scan ResultSet for T2", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={1, 2, 3}", 1));
        assertTrue(rtsp.findString(
                "Hash Scan ResultSet for T3 using index T3_TWO_TWENTY", 1));
       
        // t1 x t2 -> 16 * 10^4.
 
View Full Code Here

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

        RuntimeStatisticsParser rtsp =
                SQLUtilities.getRuntimeStatisticsParser(s);
        assertTrue(rtsp.findString("Table Scan ResultSet for T1", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={0, 2, 3}", 1));
        assertTrue(rtsp.findString("Hash Scan ResultSet for T2", 1));
        assertTrue(rtsp.findString("Bit set of columns fetched={1, 2, 3}", 1));
        assertTrue(rtsp.findString(
                "Hash Scan ResultSet for T3 using index T3_TWO_TWENTY", 1));
       
        // t1 x t2 -> 16 * 10^4.
        // x t3    -> 32 * 10^7
 
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.