Package org.voltdb

Examples of org.voltdb.VoltTable.addRow()


                    this.hstore_site.getSiteName(),
                    this.executor.getPartitionId(),
                    Status.OK.name(),
                    new TimestampType(),
                };
                vt.addRow(row);
                result = new DependencySet(SysProcFragmentId.PF_quiesceDistribute, vt);
                break;
            }
            // Aggregate Results
            case SysProcFragmentId.PF_quiesceAggregate:
View Full Code Here


            total += ol_amount;

            voltQueueSQL(createOrderLine, d_next_o_id, d_id, w_id, ol_number, ol_i_id, ol_supply_w_id, timestamp, ol_quantity, ol_amount, s_dist_xx);

            // Add the info to be returned
            item_data.addRow(i_name, s_quantity, brand_generic, i_price, ol_amount);
        }
        voltExecuteSQL(true);

        // Adjust the total for the discount
        total *= (1 - c_discount) * (1 + w_tax + d_tax);
View Full Code Here

        // Adjust the total for the discount
        total *= (1 - c_discount) * (1 + w_tax + d_tax);

        // pack up values the client is missing (see TPC-C 2.4.3.5)
        final VoltTable misc = misc_template.clone(256);
        misc.addRow(w_tax, d_tax, d_next_o_id, total);

        return new VoltTable[] { customer, misc, item_data };
    }
}
View Full Code Here

            Long currentTxnId = dbg.getCurrentTxnId();
            Long currentDtxnId = dbg.getCurrentDtxnId();
            Long lastCommitted = dbg.getLastCommittedTxnId();
            Long lastExecuted = dbg.getLastExecutedTxnId();
           
            vt.addRow(es.getSiteId(),
                      es.getPartitionId(),
                      es_queue.size(),
                      dbg.getWorkQueueSize(),
                      dbg.getBlockedWorkCount(),
                      dbg.getBlockedSpecExecCount(),
View Full Code Here

                        final String hostname = executor.getHStoreSite().getSiteName();
                        for (Map.Entry<Long, Pair<String, long[]>> e : stats.entrySet()) {
                            final Long connectionId = e.getKey();
                            final String remoteHostname = e.getValue().getFirst();
                            final long counters[] = e.getValue().getSecond();
                            result.addRow(
                                          now,
                                          hostId,
                                          hostname,
                                          connectionId,
                                          remoteHostname,
View Full Code Here

                }
                return new DependencySet(DEP_ioDataAggregator, result);
            }
            case SysProcFragmentId.PF_partitionCount: {
                VoltTable result = new VoltTable(new VoltTable.ColumnInfo("PARTITION_COUNT", VoltType.INTEGER));
                result.addRow(executor.getHStoreSite().getLocalPartitionIds().size());
                return new DependencySet(DEP_partitionCount, result);
            }
        } // SWITCH

        assert (false);
View Full Code Here

                      LOG.debug(String.format("#1#FlightInfo is adding row...\nVT: %s\nVTFlightINFO:%s",
                                tuple.toString(), vt.toString(), vtFilghtInfo.toString()));
                  Object[] partTuple = new Object[vtFilghtInfo.getColumnCount()];
                  for (int i = 0 ;i < partTuple.length; i++)
                    partTuple[i] = tuple[flightInfoOffsets[i]];
                  vtFilghtInfo.addRow(partTuple);
                }
                if (row_idx > 0 && (row_idx+1) % batch_size == 0) {
                    // if (trace.val) LOG.trace("Storing batch of " + batch_size + " tuples for " + tableName + " [total=" + row_idx + "]");
                    // if (debug) System.out.println(vt.toString());
                    this.loadVoltTable(tableName, vt);
View Full Code Here

                final String paths[] = (String[])params.toArray()[0];
                final String nonces[] = (String[])params.toArray()[1];
                for (int ii = 0; ii < paths.length; ii++) {
                    List<File> relevantFiles = retrieveRelevantFiles(paths[ii], nonces[ii]);
                    if (relevantFiles == null) {
                        result.addRow(
                                      Integer.parseInt(context.getSite().getHost().getTypeName().replaceAll("[\\D]", "")),
                                      hostname,
                                      paths[ii],
                                      nonces[ii],
                                      "",
View Full Code Here

                                      errorString);
                    } else {
                        for (final File f : relevantFiles) {
                            long size = f.length();
                            boolean deleted = f.delete();
                            result.addRow(
                                          Integer.parseInt(context.getSite().getHost().getTypeName().replaceAll("[\\D]", "")),
                                          hostname,
                                          paths[ii],
                                          nonces[ii],
                                          f.getName(),
View Full Code Here

                if (trace.val)
                    LOG.trace(String.format("Adding %s [%d] to virtual column %d",
                              table.getColumnName(catalog_col.getIndex()), catalog_col.getIndex(), i));
                row[catalog_col.getIndex()] = table.get(catalog_col.getIndex());
            } // FOR
            vt.addRow(row);
        } // WHILE
        if (debug.val)
            LOG.info(String.format("Vertical Partition %s -> %s\n",
                     catalog_view.getParent().getName(), virtual_tbl.getName()) + vt);
       
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.