Package io.vertx.mongo.client.model
Class IndexOptionDefaults
- java.lang.Object
-
- io.vertx.mongo.client.model.IndexOptionDefaults
-
public class IndexOptionDefaults extends java.lang.ObjectThe default options for a collection to apply on the creation of indexes.- Since:
- 3.2
- Since server release
- 3.2
- MongoDB documentation
- Create Collection
- Index options
-
-
Constructor Summary
Constructors Constructor Description IndexOptionDefaults()IndexOptionDefaults(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObjectgetStorageEngine()Gets the default storage engine options document for indexes.IndexOptionDefaultssetStorageEngine(JsonObject storageEngine)Sets the default storage engine options document for indexes.JsonObjecttoJson()
-
-
-
Constructor Detail
-
IndexOptionDefaults
public IndexOptionDefaults()
-
IndexOptionDefaults
public IndexOptionDefaults(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setStorageEngine
public IndexOptionDefaults setStorageEngine(JsonObject storageEngine)
Sets the default storage engine options document for indexes.- Parameters:
storageEngine- the storage engine options- Returns:
- this
-
getStorageEngine
public JsonObject getStorageEngine()
Gets the default storage engine options document for indexes.- Returns:
- the storage engine options
-
-