public class DropIndexOperation extends Object implements AsyncWriteOperation<Void>, WriteOperation<Void>
| Constructor and Description |
|---|
DropIndexOperation(MongoNamespace namespace,
BsonDocument keys)
Construct a new instance.
|
DropIndexOperation(MongoNamespace namespace,
String indexName)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Void |
execute(WriteBinding binding)
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<Void> callback)
General execute which can return anything of type T
|
public DropIndexOperation(MongoNamespace namespace, String indexName)
namespace - the database and collection namespace for the operation.indexName - the name of the index to be dropped.public DropIndexOperation(MongoNamespace namespace, BsonDocument keys)
namespace - the database and collection namespace for the operation.keys - the keys of the index to be droppedpublic Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executed