Package com.mongodb.client.model
Class IndexModel
java.lang.Object
com.mongodb.client.model.IndexModel
A model describing the creation of a single index.
- Since:
 - 3.0
 - MongoDB documentation
 - Index options
 
- 
Constructor Summary
ConstructorsConstructorDescriptionIndexModel(org.bson.conversions.Bson keys) Construct an instance with the given keys.IndexModel(org.bson.conversions.Bson keys, IndexOptions options) Construct an instance with the given keys and options. - 
Method Summary
 
- 
Constructor Details
- 
IndexModel
public IndexModel(org.bson.conversions.Bson keys) Construct an instance with the given keys.- Parameters:
 keys- the index keys
 - 
IndexModel
Construct an instance with the given keys and options.- Parameters:
 keys- the index keysoptions- the index options
 
 - 
 - 
Method Details