if (duplicateCheckList.contains(key)) {
logger.info(key + " is duplicate");
continue;
}
newEntry.addField(new Field(null, Entity.KEY_RESERVED_PROPERTY, key));
for (GbProperty gbProperty : gbEntity.getProperties()) {
final String value = gbProperty.asSpreadsheetValue();
if (value == null) {
continue;
}
final String columnName = gbProperty.getName();
if (valueTypeRowMap.containsKey(columnName) == false) {
continue; // when the colum name is undefined.
}
newEntry.addField(new Field(null, columnName, "'" + value));
// Update valueType Cell
if (valueTypeNotSet) {
Field valueTypeCell = valueTypeRowMap.get(columnName);
// Avoid when statistics is not updated.
if (valueTypeCell != null) {
valueTypeCell.setValue(gbProperty.asSpreadsheetValueType());
}
}
}
RecordEntry inserted = ss.insert(recordFeedUrl, newEntry);
newRecordList.add(inserted);