public class IndexModel extends Object
| Constructor and Description |
|---|
IndexModel(Bson keys)
Construct an instance with the given keys.
|
IndexModel(Bson keys,
IndexOptions options)
Construct an instance with the given keys and options.
|
public IndexModel(Bson keys)
keys - the index keyspublic IndexModel(Bson keys, IndexOptions options)
keys - the index keysoptions - the index optionspublic Bson getKeys()
public IndexOptions getOptions()