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.createIndexes(ClientSession clientSession,
List<IndexModel> indexes,
CreateIndexOptions createIndexOptions,
SingleResultCallback<List<String>> callback)
Create multiple indexes.
|
void |
MongoCollection.createIndexes(List<IndexModel> indexes,
CreateIndexOptions createIndexOptions,
SingleResultCallback<List<String>> callback)
Create multiple indexes.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
MongoCollection.createIndexes(ClientSession clientSession,
List<IndexModel> indexes,
CreateIndexOptions createIndexOptions)
Create multiple indexes.
|
List<String> |
MongoCollection.createIndexes(List<IndexModel> indexes,
CreateIndexOptions createIndexOptions)
Create multiple indexes.
|
Modifier and Type | Method and Description |
---|---|
CreateIndexOptions |
CreateIndexOptions.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
Copyright © 2018. All rights reserved.