Examples of clearRowData()


Examples of org.voltdb.VoltTable.clearRowData()

                // Items! Sail yo ho!
                if (items.getRowCount() == replicated_batch_size) {
                    if (debug.val)
                        LOG.debug(String.format("Loading replicated ITEM table [tuples=%d/%d]", i, m_parameters.num_items));
                    loadVoltTable("ITEM", items);
                    items.clearRowData();
                }
                if (this.stop) return;
            } // FOR
            if (items.getRowCount() > 0) {
                String extra = "";
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                String extra = "";
                if (items.getRowCount() < m_parameters.num_items) extra = String.format(" [tuples=%d/%d]", m_parameters.num_items-items.getRowCount(), m_parameters.num_items);
                if (debug.val)
                    LOG.debug("Loading replicated ITEM table" + extra);
                loadVoltTable("ITEM", items);
                items.clearRowData();
            }
            items = null;
        }
       
        /** Send to data to VoltDB and/or to the jdbc connection */
 
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

            if (customerTbl.getRowCount() >= kCustomerBatchSize) {
                System.err.printf("CUSTOMERS: loading %d rows (cid %d of %d)\n",
                                  customerTbl.getRowCount(), cid, (kMaxCustomers / m_scalefactor));
                loadTable("CUSTOMERS", customerTbl);
                 customerTbl.clearRowData();
            }
        }
        System.err.println("CUSTOMERS: loading final " + customerTbl.getRowCount() + " rows.");
        loadTable("CUSTOMERS", customerTbl);
        customerTbl.clearRowData();
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                 customerTbl.clearRowData();
            }
        }
        System.err.println("CUSTOMERS: loading final " + customerTbl.getRowCount() + " rows.");
        loadTable("CUSTOMERS", customerTbl);
        customerTbl.clearRowData();
    }

    /**
     * Populate FLIGHTS per benchmark spec
     */
 
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

            if (flightTbl.getRowCount() >= kFlightBatchSize) {
                System.err.printf("FLIGHTS: loading %d rows (fid %d of %d)\n",
                                  flightTbl.getRowCount(), fid, (kMaxFlights / m_scalefactor));
                loadTable("FLIGHTS", flightTbl);
                flightTbl.clearRowData();
            }
        }
        System.err.println("FLIGHTS: loading final " + flightTbl.getRowCount() + " rows.");
        loadTable("FLIGHTS", flightTbl);
        flightTbl.clearRowData();
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                flightTbl.clearRowData();
            }
        }
        System.err.println("FLIGHTS: loading final " + flightTbl.getRowCount() + " rows.");
        loadTable("FLIGHTS", flightTbl);
        flightTbl.clearRowData();
    }

    /**
     * Populate RESERVATIONS per benchmark spec
     */
 
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

                    reservationTbl.addRow(row);
                    if (reservationTbl.getRowCount() >= kReservationBatchSize) {
                        System.err.printf("RESERVATIONS: loading %d rows (fid %d of %d)\n",
                                          reservationTbl.getRowCount(), fid, maxfids);
                        loadTable("RESERVATIONS", reservationTbl);
                        reservationTbl.clearRowData();
                    }
                }

            }
        }
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

            }
        }
        System.err.println("RESERVATIONS: loading final " + reservationTbl.getRowCount() + " rows.");
        loadTable("RESERVATIONS", reservationTbl);
        reservationTbl.clearRowData();
    }

    /**
     * Give each seat a 70%-90% probability of being occupied
     */
 
View Full Code Here

Examples of org.voltdb.VoltTable.clearRowData()

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

Examples of org.voltdb.VoltTable.clearRowData()

        } // FOR
        if (table.getRowCount() > 0) {
            if (d) LOG.debug(String.format("%s: %6d / %d",
                             TM1Constants.TABLENAME_SUBSCRIBER, total, this.subscriberSize));
            loadVoltTable(TM1Constants.TABLENAME_SUBSCRIBER, table);
            table.clearRowData();
            assert(table.getRowCount() == 0);
        }
    }

    /**
 
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.