Package org.voltdb

Examples of org.voltdb.VoltTable.advanceRow()


                    if (vt.getRowCount() == 0) break;
                    total += vt.getRowCount();
                    LOG.debug(String.format("Writing %d / %d tuples to '%s'", vt.getRowCount(), total, csv_file.getName()));
                   
                    // Dump table contents
                    while (vt.advanceRow()) {
                        String row[] = vt.getRowStringArray();
                        assert(row != null);
                        assert(row.length == vt.getColumnCount());
                        writer.writeNext(row);
                    } // WHILE
View Full Code Here


                        }

                        try {
                            int count = 0;
                            StringBuilder query = new StringBuilder();
                            while (procedureStats.advanceRow()) {
                                query.append(String.format(insertProcedureStatsStatement,
                                        procedureStatsTableId,
                                        m_instanceId,
                                        new Timestamp(procedureStats.getLong("TIMESTAMP")),
                                        procedureStats.getString("HOSTNAME"),
View Full Code Here

                            }
                            e.printStackTrace();
                        }

                        try {
                            while (procedureStats.advanceRow()) {
                                int index = 1;
                                insertProcedureStatsStmt.setInt(index++,
                                        m_instanceId);
                                insertProcedureStatsStmt.setTimestamp(index++,
                                        new Timestamp(procedureStats.getLong("TIMESTAMP")));
View Full Code Here

                // voltTable
                VoltTable res[] = cr.getResults();
                VoltTable vt = res[0];
               
                // deal with the VoltTable and try to ...
                if (!vt.advanceRow() ) {
                    String msg = "No result for the GetPageAnonymous stored procedure";
                    throw new VoltAbortException(msg);
                }

                String vt_userText = vt.getString("USER_TEXT");
View Full Code Here

                String vt_oldText = vt.getString("OLD_TEXT");
                int vt_textId = (int) vt.getLong("TEXT_ID");
                int vt_revisionId = (int) vt.getLong("REVISION_ID");

                assert(vt_pageId == pageId) : String.format("pageId=%d / pageTitle=%d", vt_pageId, vt_pageTitle);
                assert(vt.advanceRow() == false) : "This assert should be false, vt has only one row";

                // Permute the original text of the article
                // Important: We have to make sure that we fill in the entire array
                String newText = new String(util.generateRevisionText(vt_oldText.toCharArray()));
                int revCommentLen = util.h_commentLength.nextValue().intValue();
View Full Code Here

            VoltTable result = constructResultsTable();
            for (int dep_id : dependencies.keySet()) {
                List<VoltTable> table_list = dependencies.get(dep_id);
                assert (table_list.size() == 1);
                VoltTable t = table_list.get(0);
                while (t.advanceRow()) {
                    // this will actually add the active row of t
                    result.add(t);
                }
            }
            return new DependencySet(dependency_id, result);
View Full Code Here

            VoltTable result = constructResultsTable();
            for (int dep_id : dependencies.keySet()) {
                List<VoltTable> table_list = dependencies.get(dep_id);
                assert (table_list.size() == 1);
                VoltTable t = table_list.get(0);
                while (t.advanceRow()) {
                    // this will actually add the active row of t
                    result.add(t);
                }
            }
            return new DependencySet(dependency_id, result);
View Full Code Here

            VoltTable result = constructResultsTable();
            for (int dep_id : dependencies.keySet()) {
                List<VoltTable> table_list = dependencies.get(dep_id);
                assert (table_list.size() == 1);
                VoltTable t = table_list.get(0);
                while (t.advanceRow()) {
                    // this will actually add the active row of t
                    result.add(t);
                }
            }
            return new DependencySet(dependency_id, result);
View Full Code Here

            VoltTable result = constructResultsTable();
            for (int dep_id : dependencies.keySet()) {
                List<VoltTable> table_list = dependencies.get(dep_id);
                assert (table_list.size() == 1);
                VoltTable t = table_list.get(0);
                while (t.advanceRow()) {
                    // this will actually add the active row of t
                    result.add(t);
                }
            }
            return new DependencySet(dependency_id, result);
View Full Code Here

            }
            // ITEM_COMMENT
            if (expect_comments) {
                VoltTable vt = results[idx++];
                assert(vt != null);
                while (vt.advanceRow()) {
                    long vals[] = {
                        vt.getLong("ic_id"),
                        vt.getLong("ic_i_id"),
                        vt.getLong("ic_u_id")
                    };
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.