public class IterateDeleter extends Object implements DocDeleter
| Constructor and Description |
|---|
IterateDeleter(Translator translator) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.mongodb.DBCollection collection,
com.mongodb.DBObject mongoQuery,
com.redhat.lightblue.crud.CRUDDeleteResponse response)
Delete documents
|
public IterateDeleter(Translator translator)
public void delete(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.mongodb.DBCollection collection,
com.mongodb.DBObject mongoQuery,
com.redhat.lightblue.crud.CRUDDeleteResponse response)
DocDeleterdelete in interface DocDeleterctx - Operation contextcollection - The collection from which the documents will be deletedmongoQuery - The query whose result set will be deletedresponse - The deletion response
The implementation should delete the documents, and update the response
with the number of docs deleted. No exception handling is expected from
the implementation, so all unhandled exceptions should be rethrown.Copyright © 2014. All rights reserved.