Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.dropIndex(Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
String indexName,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback)
Drops the index given its name.
|
void |
MongoCollection.dropIndex(String indexName,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback)
Drops the index given its name.
|
void |
MongoCollection.dropIndexes(ClientSession clientSession,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback)
Drop all the indexes on this collection, except for the default on _id.
|
void |
MongoCollection.dropIndexes(DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback)
Drop all the indexes on this collection, except for the default on _id.
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.dropIndex(Bson keys,
DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
String indexName,
DropIndexOptions dropIndexOptions)
Drops the index given its name.
|
void |
MongoCollection.dropIndex(String indexName,
DropIndexOptions dropIndexOptions)
Drops the index given its name.
|
void |
MongoCollection.dropIndexes(ClientSession clientSession,
DropIndexOptions dropIndexOptions)
Drop all the indexes on this collection, except for the default on _id.
|
void |
MongoCollection.dropIndexes(DropIndexOptions dropIndexOptions)
Drop all the indexes on this collection, except for the default on _id.
|
Modifier and Type | Method and Description |
---|---|
DropIndexOptions |
DropIndexOptions.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
Copyright © 2018. All rights reserved.