_newDocs.clear();
_recordIdsToDelete.clear();
boolean rowIdSet = false;
for (BlurMutate mutate : values) {
BlurRecord record = mutate.getRecord();
if (!rowIdSet) {
String rowId = record.getRowId();
_rowIdTerm = new Term(BlurConstants.ROW_ID, rowId);
rowIdSet = true;
}
if (mutate.getMutateType() == MUTATE_TYPE.DELETE) {
_recordIdsToDelete.add(record.getRecordId());
continue;
}
Document document = toDocument(record);
_newDocs.put(record.getRecordId(), document);
context.progress();
recordCount++;
if (recordCount >= _blurTask.getMaxRecordsPerRow()) {
return false;