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(Integer bits)
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
|
IndexRequest |
IndexRequest.bucketSize(Double bucketSize)
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
|
IndexRequest |
IndexRequest.defaultLanguage(String defaultLanguage)
Sets the language for the text index.
|
IndexRequest |
IndexRequest.dropDups(boolean dropDups)
Sets the legacy dropDups setting
|
IndexRequest |
IndexRequest.expireAfter(Long expireAfter,
TimeUnit timeUnit)
Sets the time to live for documents in the collection
|
IndexRequest |
IndexRequest.languageOverride(String languageOverride)
Sets the name of the field that contains the language string.
|
IndexRequest |
IndexRequest.max(Double max)
Sets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
|
IndexRequest |
IndexRequest.min(Double min)
Sets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
|
IndexRequest |
IndexRequest.name(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(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(Integer textVersion)
Set the text index version number.
|
IndexRequest |
IndexRequest.unique(boolean unique)
Should the index should be unique.
|
IndexRequest |
IndexRequest.version(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 | Method and Description |
---|---|
List<IndexRequest> |
CreateIndexesOperation.getRequests()
Gets the index requests.
|
Constructor and Description |
---|
CreateIndexesOperation(MongoNamespace namespace,
List<IndexRequest> requests)
Construct a new instance.
|
Copyright © 2016. All Rights Reserved.