本文整理了Java中com.google.api.services.bigquery.model.TableRow.setF()
方法的一些代码示例,展示了TableRow.setF()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableRow.setF()
方法的具体详情如下:
包路径:com.google.api.services.bigquery.model.TableRow
类名称:TableRow
方法名:setF
[英]Represents a single row in the result set, consisting of one or more fields.
[中]表示结果集中的一行,由一个或多个字段组成。
代码示例来源:origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform
row.setF(null);
} else {
row = new TableRow();
代码示例来源:origin: com.spotify/scio-bigquery
row.setF(null);
} else {
row = new TableRow();
代码示例来源:origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform
private TableRow rawRow(Object... args) {
List<TableCell> cells = new ArrayList<>();
for (Object a : args) {
cells.add(new TableCell().setV(a));
}
return new TableRow().setF(cells);
}
代码示例来源:origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform
private QueryResponse createResponseContainingTestData() {
TableCell field1 = new TableCell();
field1.setV("abc");
TableCell field2 = new TableCell();
field2.setV("2");
TableCell field3 = new TableCell();
field3.setV("testing BigQuery matcher.");
TableRow row = new TableRow();
row.setF(Lists.newArrayList(field1, field2, field3));
QueryResponse response = new QueryResponse();
response.setJobComplete(true);
response.setRows(Lists.newArrayList(row));
response.setTotalRows(BigInteger.ONE);
return response;
}
}
代码示例来源:origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform
@Test
public void testDecodeEncodeEqual() throws Exception {
BigQueryInsertError value =
new BigQueryInsertError(
new TableRow().setF(Collections.singletonList(new TableCell().setV("Value"))),
new TableDataInsertAllResponse.InsertErrors()
.setIndex(0L)
.setErrors(
Collections.singletonList(
new ErrorProto()
.setReason("a Reason")
.setLocation("A location")
.setMessage("A message")
.setDebugInfo("The debug info"))),
new TableReference()
.setProjectId("dummy-project-id")
.setDatasetId("dummy-dataset-id")
.setTableId("dummy-table-id"));
CoderProperties.coderDecodeEncodeEqual(TEST_CODER, value);
}
}
内容来源于网络,如有侵权,请联系作者删除!