Database Reference
In-Depth Information
}
TableFieldSchema field = fields.get(ii);
TableCell cell = fixup(new TableCell(),
cells.get(ii));
printCell(field, cell);
}
printer.append("}");
}
public void printRows(TableSchema schema,
List<TableRow> rows) {
for (TableRow row : rows) {
printCells(schema.getFields(), row.getF());
}
}
public void print(QueryResponse response) {
printRows(response.getSchema(),
response.getRows());
}
public void print(GetQueryResultsResponse response) {
printRows(response.getSchema(),
response.getRows());
}
public void print(TableSchema schema, TableDataList
response) {
printRows(schema, response.getRows());
}
}
TableData.insertAll()
The TableData.insertAll() method is used for appending records to a
table. It is described in much more detail in Chapter 6, “Loading Data,” in
the section on streaming imports. You may ask, why provide a nonstandard
i nsertAll() RPC method but not a normal REST i nsert() call? The
primary reason is efficiency; if you have Big Data but send individual POST
requests to add each row to your table, you're going to incur a lot of network
overhead to set up and tear down HTTP connections. Although you can call
Search WWH ::




Custom Search