public static class InsertAllRequest.RowToInsert extends Object implements Serializable
RowToInsert has an associated
id used by BigQuery to detect duplicate insertion requests on a best-effort basis.
Example usage of creating a row to insert:
List<Long> repeatedFieldValue = Arrays.asList(1L, 2L);
Map<String, Object> recordContent = new HashMap<String, Object>();
recordContent.put("subfieldName1", "value");
recordContent.put("subfieldName2", repeatedFieldValue);
Map<String, Object> rowContent = new HashMap<String, Object>();
rowContent.put("fieldName1", true);
rowContent.put("fieldName2", recordContent);
RowToInsert row = new RowToInsert("rowId", rowContent);
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
content()
Returns the actual content of the row, as a map.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
id()
Returns the id associated with the row.
|
static InsertAllRequest.RowToInsert |
of(Map<String,Object> content)
Creates a row to be inserted without associated id.
|
static InsertAllRequest.RowToInsert |
of(String id,
Map<String,Object> content)
Creates a row to be inserted with associated id.
|
String |
toString() |
public String id()
null if not set.public static InsertAllRequest.RowToInsert of(String id, Map<String,Object> content)
id - id of the row, used to identify duplicatescontent - the actual content of the rowpublic static InsertAllRequest.RowToInsert of(Map<String,Object> content)
content - the actual content of the rowCopyright © 2016 Google. All rights reserved.