Examples of writeRow()


Examples of ar.com.hjg.pngj.PngWriter.writeRow()

             */
            rgba[row][offset + 3] = 255;
        }
        for (int row = 0; row < rgba.length; row++) {
            ImageLineInt iline = new ImageLineInt(imgInfo, rgba[row]);
            pw.writeRow(iline, row);
        }
        pw.end();

        // Disallow caching on client side
        CacheControl cc = new CacheControl();
View Full Code Here

Examples of com.foundationdb.qp.operator.StoreAdapter.writeRow()

            runPlan(session, contextIfNull(context, origAdapter), schemaManager, txnService, plan, new RowHandler() {
                @Override
                public void handleRow(Row oldRow) {
                    TableTransform transform = transformCache.get(oldRow.rowType().typeId());
                    Row newRow = transformRow(origContext, origBindings, transform, oldRow);
                    origAdapter.writeRow(newRow, transform.tableIndexes, transform.groupIndexes);
                }
            });
        }
    }
View Full Code Here

Examples of com.foundationdb.qp.operator.StoreAdapter.writeRow()

                    }
                }
                if(doWrite) {
                    Row origNewRow = new RowDataRow(transform.rowType, newRowData);
                    Row newNewRow = transformRow(context, bindings, transform, origNewRow);
                    adapter.writeRow(newNewRow, transform.tableIndexes, transform.groupIndexes);
                }
                break;
        }
        transform.hKeySaver.save(schemaManager, session, hKey);
    }
View Full Code Here

Examples of com.salesforce.dataloader.dao.csv.CSVFileWriter.writeRow()

        CSVFileWriter writer = null;
        try {
            writer = new CSVFileWriter(CSV_FILE_PATH, getController().getConfig());
            writer.open();
            writer.setColumnNames(new ArrayList<String>(row.keySet()));
            writer.writeRow(row);
        } finally {
            if (writer != null) writer.close();
        }
    }
View Full Code Here

Examples of org.grouplens.lenskit.util.table.writer.TableWriter.writeRow()

    public Void createContext(Attributed algorithm, TTDataSet dataSet, Recommender recommender) {
        Preconditions.checkState(evalLayout != null, "evaluation not in progress");
        TableWriter w = evalLayout.prefixTable(writer, algorithm, dataSet);
        for (List<Object> row: function.apply(recommender)) {
            try {
                w.writeRow(row.toArray());
            } catch (IOException e) {
                throw new RuntimeException("error writing row", e);
            }
        }
        return null;
View Full Code Here

Examples of org.grouplens.lenskit.util.table.writer.TableWriter.writeRow()

                        row[0] = r.getUserId();
                        row[1] = r.getItemId();
                        if (writeRatings) {
                            row[2] = p.getValue();
                        }
                        table.writeRow(row);
                    }
                }
            } finally {
                ratings.close();
            }
View Full Code Here

Examples of org.grouplens.lenskit.util.table.writer.TableWriter.writeRow()

                }
                userTimer.stop();
                userRow.set(1, userTimer.elapsed(TimeUnit.MILLISECONDS) * 0.001);
                if (userResults != null) {
                    try {
                        userResults.writeRow(userRow);
                    } catch (IOException e) {
                        throw new RuntimeException("error writing user row", e);
                    }
                }
                userRow.clear();
View Full Code Here

Examples of org.grouplens.lenskit.util.table.writer.TableWriter.writeRow()

        row.add(test.getTime());
        row.addAll(measures);
        for (MetricWithAccumulator<?> acc : accums) {
            row.addAll(acc.getResults());
        }
        results.writeRow(row);
    }

    @Override
    public String toString() {
        return String.format("test %s on %s", algorithmInfo, dataSet);
View Full Code Here

Examples of org.tarantool.snapshot.SnapshotWriter.writeRow()

          byte[] enabled = { Byte.valueOf(values[3]) };
          Long registered = Long.parseLong(outdf.format(indf.parse(values[4])));
          Tuple tuple = new Tuple(5).setInt(0, id).setString(1, username, "UTF-8").setString(2, email, "UTF-8").setBytes(3, enabled)
              .setLong(4, registered);

          writer.writeRow(0, tuple);
        } else {
          System.err.println("Line should be splited in 5 parts, but has " + values.length + " for " + line);
        }
      } catch (Exception e) {
        System.err.println("Can't parse line " + line);
View Full Code Here

Examples of xbird.util.csv.CsvWriter.writeRow()

    public ProfiledDocumentTable(File f) {
        System.err.println("Access pattern to the XMLDocumentTable is profiled to "
                + f.getAbsolutePath());
        final CsvWriter csv = new CsvWriter(f);
        csv.writeRow("page");
        this._csv = csv;
    }

    public void setProfiling(boolean enable) {
        this.enable = enable;
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.