}
}
}
private Set<String> createDocuments(int numDocs) throws UnknownHostException {
MongoDocumentIO mongoDocumentIO = buildMongoDocumentIO(mongoConfiguration);
Set<String> externalDocumentIds = new HashSet<String>();
for(int i = 0; i < numDocs; i++) {
String externalDocId = UUID.randomUUID().toString();
MongoDocument mongoDocument = new MongoDocument();
mongoDocument.putContentField("externalDocId", externalDocId);
mongoDocumentIO.insert(mongoDocument);
externalDocumentIds.add(externalDocId);
}
return externalDocumentIds;
}