Examples of advanceToRow()


Examples of org.voltdb.VoltTable.advanceToRow()

            // Have to reset the position to its original position.
            if (orig_position < 0)
                table.resetRowPosition();
            else
                table.advanceToRow(orig_position);
        }

        if (!isSatisfied)
            LOG.error("Transaction " + procName + " failed check");
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        long resultCount = r.getRowCount();
        assertEquals(5, resultCount);
        r.advanceRow();
        resultB = r.getLong(0);
        assertEquals(14, resultB);
        r.advanceToRow(4);
        resultB = r.getLong(0);
        assertEquals(10, resultB);

        boolean caught = false;
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        vt2 = p2Result.getResults()[0];
        assertEquals(vt2.getRowCount(), 1);

        p1Result = m_client.callProcedure("p1", "18");
        vt1 = p1Result.getResults()[0];
        vt1.advanceToRow(0);

        assertEquals(vt1.getRowCount(), 1);
        assertEquals(vt1.getLong(0), 1);
        assertEquals(vt1.getString("NAME"), "Kevin Durant");
    }
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

    @Test
    public void testCreateProcedureFromClass() throws Exception {
        ClientResponse resp = m_client.callProcedure("testCreateProcFromClassProc", 1l, "Test", "Yuning He");
        VoltTable vt = resp.getResults()[0];
        vt.advanceToRow(0);
        assertEquals(vt.get(0, VoltType.INTEGER), 1);
    }

    @Test
    public void testCreateTableDataType() throws Exception {
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        m_client.callProcedure("@AdHoc", "insert into T4 values (1, 2, 3, 4, 5.5, 6.6, \'test\', \'010101\', 1000, 1111);");

        resp = m_client.callProcedure("@AdHoc", "select * from T4;");
        vt = resp.getResults()[0];
        assertEquals(vt.getRowCount(), 1);
        vt.advanceToRow(0);
        byte ret1 = 1;
        assertEquals(vt.get(0, VoltType.TINYINT), ret1);
        assertEquals(vt.get(2, VoltType.INTEGER), 3);
        assertEquals(vt.get(4, VoltType.FLOAT), 5.5);

View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        m_client.callProcedure("T5.insert", "hahahaha");
        resp = m_client.callProcedure("@AdHoc", "select * from T5 order by c;");
        vt = resp.getResults()[0];
        assertEquals(vt.getRowCount(), 2);
        vt.advanceToRow(0);
        assertEquals(vt.get(0, VoltType.STRING), "hahahaha");
        vt.advanceToRow(1);
        assertEquals(vt.get(0, VoltType.STRING), "test");

        m_client.callProcedure("T6.insert", "test");
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        resp = m_client.callProcedure("@AdHoc", "select * from T5 order by c;");
        vt = resp.getResults()[0];
        assertEquals(vt.getRowCount(), 2);
        vt.advanceToRow(0);
        assertEquals(vt.get(0, VoltType.STRING), "hahahaha");
        vt.advanceToRow(1);
        assertEquals(vt.get(0, VoltType.STRING), "test");

        m_client.callProcedure("T6.insert", "test");
        resp = m_client.callProcedure("@AdHoc", "select * from T6;");
        assertEquals(resp.getResults()[0].getRowCount(), 1);
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        m_client.callProcedure("T24.insert", 1, 2);
        m_client.callProcedure("T24.insert", 1, 2);
        ClientResponse resp = m_client.callProcedure("@AdHoc", "select * from VT1");
        VoltTable vt = resp.getResults()[0];
        vt.advanceToRow(0);
        assertEquals(vt.get(2, VoltType.INTEGER), 2);
    }

    @Test
    public void testExportTable() throws Exception
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        ClientResponse resp;
        VoltTable vt;
        resp = m_client.callProcedure("p4", 18);
        vt = resp.getResults()[0];
        vt.advanceToRow(0);
        assertEquals(vt.get(0, VoltType.BIGINT), 0l);

        m_client.callProcedure("T26.insert", 18, 1);

        resp = m_client.callProcedure("p4", 18);
View Full Code Here

Examples of org.voltdb.VoltTable.advanceToRow()

        m_client.callProcedure("T26.insert", 18, 1);

        resp = m_client.callProcedure("p4", 18);
        vt = resp.getResults()[0];
        vt.advanceToRow(0);
        assertEquals(vt.get(0, VoltType.BIGINT), 1l);
    }
}
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.