Package com.foundationdb.qp.memoryadapter.MemoryGroupCursor

Examples of com.foundationdb.qp.memoryadapter.MemoryGroupCursor.GroupScan


    @Test
    public void viewsScan() {
        final Object[][] expected = {
                { null, "test", "voo", new Text("CREATE VIEW voo(c1,c2) AS SELECT c2,c1 FROM foo"), "NONE", false, "NO", "NO", "NO", "NO", LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.VIEWS).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S views", 0, skipped);
    }
View Full Code Here


    @Test
    public void viewTableUsageScan() {
        final Object[][] expected = {
                { null, "test", "voo", null, "test", "foo", LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.VIEW_TABLE_USAGE).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S views", 0, skipped);
    }
View Full Code Here

    public void viewColumnUsageScan() {
        final Object[][] expected = {
                { null, "test", "voo", null, "test", "foo", "c1", LONG },
                { null, "test", "voo", null, "test", "foo", "c2", LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.VIEW_COLUMN_USAGE).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S views", 0, skipped);
    }
View Full Code Here

        final Object[][] expected = {
            { null, "test", "proc1", null, "test", "proc1", "PROCEDURE", null, null, null, null, null, null, "EXTERNAL",
                null, "com.foundationdb.procs.Proc1.call", "java", "JAVA",
                "NO", null, null, null, "YES", 0L, null, null, null, null, false, null, null, null, LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.ROUTINES).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S routines", 0, skipped);
    }
View Full Code Here

            { null, "test", "proc1", "n1", 1L, "BIGINT", null, null, null, null, "IN", "NO", null, LONG },
            { null, "test", "proc1", "s1", 2L, "VARCHAR", 16L, null, null, null, "IN", "NO", null, LONG },
            { null, "test", "proc1", "n2", 3L, "DECIMAL", null, 10L, 10L, 5L, "IN", "NO", null, LONG },
            { null, "test", "proc1", null, 4L, "VARCHAR", 100L, null, null, null, "OUT", "NO", null, LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.PARAMETERS).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S parameters", 0, skipped);
    }
View Full Code Here

    @Test
    public void jarsScan() {
        final Object[][] expected = {
            { null, "test", "ajar", "https://example.com/procs/ajar.jar", LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.JARS).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S jars", 0, skipped);
    }
View Full Code Here

    @Test
    public void routineJarUsageScan() {
        final Object[][] expected = {
                { null, "test", "proc1", null, "test", "ajar", LONG },
        };
        GroupScan scan = getFactory(BasicInfoSchemaTablesServiceImpl.ROUTINE_JAR_USAGE).getGroupScan(adapter);
        int skipped = scanAndCompare(expected, scan);
        assertEquals("Skip I_S routines", 0, skipped);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.memoryadapter.MemoryGroupCursor.GroupScan

Copyright © 2018 www.massapicom. 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.