requestRow.setInsertId(insertId); rowList.add(requestRow);
private TableDataInsertAllRequest.Rows createRowRequest(Exchange exchange, Map<String, Object> object) { TableRow tableRow = new TableRow(); tableRow.putAll(object); String insertId = null; if (configuration.getUseAsInsertId() != null) { insertId = (String)(object.get(configuration.getUseAsInsertId())); } else { if (exchange != null) { insertId = exchange.getIn().getHeader(GoogleBigQueryConstants.INSERT_ID, String.class); } } TableDataInsertAllRequest.Rows rows = new TableDataInsertAllRequest.Rows(); rows.setInsertId(insertId); rows.setJson(tableRow); return rows; }
TableDataInsertAllRequest.Rows out = new TableDataInsertAllRequest.Rows(); if (idsToPublish != null) { out.setInsertId(idsToPublish.get(i));
@Override public Rows apply(RowToInsert rowToInsert) { allInsertIdsSet[0] &= rowToInsert.getId() != null; return new Rows() .setInsertId(rowToInsert.getId()) .setJson(rowToInsert.getContent()); } })
@Override public TableDataInsertAllRequest.Rows apply(RowToInsert rowToInsert) { return new TableDataInsertAllRequest.Rows() .setInsertId(rowToInsert.getId()) .setJson(rowToInsert.getContent()); } }))
@Override public Rows apply(RowToInsert rowToInsert) { allInsertIdsSet[0] &= rowToInsert.getId() != null; return new Rows() .setInsertId(rowToInsert.getId()) .setJson(rowToInsert.getContent()); } })
@Override public TableDataInsertAllRequest.Rows apply(RowToInsert rowToInsert) { return new TableDataInsertAllRequest.Rows() .setInsertId(rowToInsert.getId()) .setJson(rowToInsert.getContent()); } }))
@Override public TableDataInsertAllRequest.Rows apply(RowToInsert rowToInsert) { return new TableDataInsertAllRequest.Rows() .setInsertId(rowToInsert.getId()) .setJson(rowToInsert.getContent()); } }))
@Override public TableDataInsertAllRequest.Rows apply(RowToInsert rowToInsert) { return new TableDataInsertAllRequest.Rows() .setInsertId(rowToInsert.getId()) .setJson(rowToInsert.getContent()); } }))