Package com.mongodb.client.model
Class IndexOptionDefaults
java.lang.Object
com.mongodb.client.model.IndexOptionDefaults
The default options for a collection to apply on the creation of indexes.
- Since:
- 3.2
- MongoDB documentation
- Create Collection
- Index options
- Since server release
- 3.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the default storage engine options document for indexes.storageEngine
(Bson storageEngine) Sets the default storage engine options document for indexes.toString()
-
Constructor Details
-
IndexOptionDefaults
public IndexOptionDefaults()
-
-
Method Details
-
getStorageEngine
Gets the default storage engine options document for indexes.- Returns:
- the storage engine options
-
storageEngine
Sets the default storage engine options document for indexes.- Parameters:
storageEngine
- the storage engine options- Returns:
- this
-
toString
-