Package | Description |
---|---|
com.mongodb.bulk |
Contains classes for representing the result of a bulk write operation.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
IndexRequest |
IndexRequest.background(boolean background)
Should the index should be created in the background
|
IndexRequest |
IndexRequest.bits(java.lang.Integer bits)
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
|
IndexRequest |
IndexRequest.bucketSize(java.lang.Double bucketSize)
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
|
IndexRequest |
IndexRequest.collation(Collation collation)
Sets the collation options
|
IndexRequest |
IndexRequest.defaultLanguage(java.lang.String defaultLanguage)
Sets the language for the text index.
|
IndexRequest |
IndexRequest.dropDups(boolean dropDups)
Sets the legacy dropDups setting
|
IndexRequest |
IndexRequest.expireAfter(java.lang.Long expireAfter,
java.util.concurrent.TimeUnit timeUnit)
Sets the time to live for documents in the collection
|
IndexRequest |
IndexRequest.languageOverride(java.lang.String languageOverride)
Sets the name of the field that contains the language string.
|
IndexRequest |
IndexRequest.max(java.lang.Double max)
Sets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
|
IndexRequest |
IndexRequest.min(java.lang.Double min)
Sets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
|
IndexRequest |
IndexRequest.name(java.lang.String name)
Sets the name of the index.
|
IndexRequest |
IndexRequest.partialFilterExpression(BsonDocument partialFilterExpression)
Sets the filter expression for the documents to be included in the index
|
IndexRequest |
IndexRequest.sparse(boolean sparse)
Should the index only references documents with the specified field
|
IndexRequest |
IndexRequest.sphereVersion(java.lang.Integer sphereVersion)
Sets the 2dsphere index version number.
|
IndexRequest |
IndexRequest.storageEngine(BsonDocument storageEngineOptions)
Sets the storage engine options document for this index.
|
IndexRequest |
IndexRequest.textVersion(java.lang.Integer textVersion)
Set the text index version number.
|
IndexRequest |
IndexRequest.unique(boolean unique)
Should the index should be unique.
|
IndexRequest |
IndexRequest.version(java.lang.Integer version)
Sets the index version number.
|
IndexRequest |
IndexRequest.weights(BsonDocument weights)
Sets the weighting object for use with a text index.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<IndexRequest> |
CreateIndexesOperation.requests |
Modifier and Type | Method and Description |
---|---|
java.util.List<IndexRequest> |
CreateIndexesOperation.getRequests()
Gets the index requests.
|
Modifier and Type | Method and Description |
---|---|
private BsonDocument |
CreateIndexesOperation.getIndex(IndexRequest request) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
OperationHelper.validateIndexRequestCollations(AsyncConnection connection,
java.util.List<IndexRequest> requests,
OperationHelper.AsyncCallableWithConnection callable) |
(package private) static void |
OperationHelper.validateIndexRequestCollations(Connection connection,
java.util.List<IndexRequest> requests) |
Constructor and Description |
---|
CreateIndexesOperation(MongoNamespace namespace,
java.util.List<IndexRequest> requests)
|
CreateIndexesOperation(MongoNamespace namespace,
java.util.List<IndexRequest> requests,
WriteConcern writeConcern)
Construct a new instance.
|