public class DropIndexOperation extends java.lang.Object implements AsyncWriteOperation<java.lang.Void>, WriteOperation<java.lang.Void>
| 构造器和说明 |
|---|
DropIndexOperation(MongoNamespace namespace,
BsonDocument keys)
Construct a new instance.
|
DropIndexOperation(MongoNamespace namespace,
java.lang.String indexName)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Void |
execute(WriteBinding binding)
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
General execute which can return anything of type T
|
public DropIndexOperation(MongoNamespace namespace, java.lang.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 java.lang.Void execute(WriteBinding binding)
WriteOperationexecute 在接口中 WriteOperation<java.lang.Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperationexecuteAsync 在接口中 AsyncWriteOperation<java.lang.Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executed