Examples of clearRowData()


Examples of org.voltdb.VoltTable.clearRowData()

            } // FOR
            if (table.getRowCount() >= TM1Constants.BATCH_SIZE) {
                if (d) LOG.debug(String.format("%s: %6d / %d",
                                 TM1Constants.TABLENAME_ACCESS_INFO, total, ai_types.length * subscriberSize));
                loadVoltTable(TM1Constants.TABLENAME_ACCESS_INFO, table);
                table.clearRowData();
            }
        } // WHILE
        if (table.getRowCount() > 0) {
            if (d) LOG.debug(String.format("%s: %6d / %d",
                             TM1Constants.TABLENAME_ACCESS_INFO, total, ai_types.length * subscriberSize));
 
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

        } // WHILE
        if (table.getRowCount() > 0) {
            if (d) LOG.debug(String.format("%s: %6d / %d",
                             TM1Constants.TABLENAME_ACCESS_INFO, total, ai_types.length * subscriberSize));
            loadVoltTable(TM1Constants.TABLENAME_ACCESS_INFO, table);
            table.clearRowData();
        }
    }

    /**
     * Populate Special_Facility table and CallForwarding table per benchmark
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

            } // FOR

            if (calTbl.getRowCount() >= TM1Constants.BATCH_SIZE) {
                if (d) LOG.debug(String.format("%s: %d", TM1Constants.TABLENAME_CALL_FORWARDING, calTotal));
                loadVoltTable(TM1Constants.TABLENAME_CALL_FORWARDING, calTbl);
                calTbl.clearRowData();
                assert(calTbl.getRowCount() == 0);
            }
            if (speTbl.getRowCount() >= TM1Constants.BATCH_SIZE) {
                if (d) LOG.debug(String.format("%s: %d", TM1Constants.TABLENAME_SPECIAL_FACILITY, speTotal));
                loadVoltTable(TM1Constants.TABLENAME_SPECIAL_FACILITY, speTbl);
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

            }
        } // WHILE
        if (calTbl.getRowCount() > 0) {
            if (d) LOG.debug(String.format("%s: %d", TM1Constants.TABLENAME_CALL_FORWARDING, calTotal));
            loadVoltTable(TM1Constants.TABLENAME_CALL_FORWARDING, calTbl);
            calTbl.clearRowData();
            assert(calTbl.getRowCount() == 0);
        }
        if (speTbl.getRowCount() > 0) {
            if (d) LOG.debug(String.format("%s: %d", TM1Constants.TABLENAME_SPECIAL_FACILITY, speTotal));
            loadVoltTable(TM1Constants.TABLENAME_SPECIAL_FACILITY, speTbl);
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

            generator.addRow();
            if (table.getRowCount() >= batchSize) {
                if (table_ctr.get() % 100000 == 0) LOG.info(String.format(tableName + ": loading %d rows (id %d of %d)", table.getRowCount(), generator.getCount(), tableSize));
                loadVoltTable(tableName, table);
                table_ctr.addAndGet(table.getRowCount());
                table.clearRowData();
            }
        } // WHILE
        if (table.getRowCount() > 0) {
            LOG.info(tableName + ": loading final " + table.getRowCount() + " rows.");
            loadVoltTable(tableName, table);
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

        } // WHILE
        if (table.getRowCount() > 0) {
            LOG.info(tableName + ": loading final " + table.getRowCount() + " rows.");
            loadVoltTable(tableName, table);
            this.table_sizes.get(tableName).addAndGet(table.getRowCount());
            table.clearRowData();
        }
        LOG.info(tableName + ": Inserted " + this.table_sizes.get(tableName) + " tuples");
    }

    // ----------------------------------------------------------------
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                    if (is_flight) {
                      if (debug.val)
                          LOG.debug(String.format("#1#FlightInfo is adding row...\nVT: %s\nVTFlightINFO:%s",
                                    tuple.toString(), vt.toString(), vtFilghtInfo.toString()));
                      this.loadVoltTable(SEATSConstants.TABLENAME_FLIGHT_INFO, vtFilghtInfo);
                      vtFilghtInfo.clearRowData();
                    }
                }
                row_idx++;
            } // FOR
        } catch (Exception ex) {
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                row_idx++;
               
                if (row_idx % batchSize == 0) {
                    LOG.debug("Storing batch of " + batchSize + " tuples for " + tableName + " [total=" + row_idx + "]");
                    this.loadVoltTable(tableName, vt);
                    vt.clearRowData();
                }
            } // FOR
        } catch (Exception ex) {
            LOG.error("Failed to load growing tables", ex);
            System.exit(1);
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                vt.addRow(tuple);
                row_idx++;
                if (row_idx % batch_size == 0) {
                    LOG.debug("Storing batch of " + batch_size + " tuples for " + catalog_tbl.getName() + " [total=" + row_idx + "]");
                    this.loadVoltTable(catalog_tbl.getName(), vt);
                    vt.clearRowData();
                }
            } // FOR
        } catch (Exception ex) {
            LOG.error("Failed to load table " + catalog_tbl.getName(), ex);
            System.exit(1);
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

        } // WHILE
        if (table.getRowCount() > 0) {
            if (debug.val)
                LOG.debug(tableName + ": loading final " + table.getRowCount() + " rows.");
            loadTable(tableName, table);
            table.clearRowData();
        }
        LOG.info(tableName + ": Inserted " + this.table_sizes.get(tableName) + " tuples");
    }

    protected static Long encodeCompositeId(long a_id, long 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.