public class IndexModel extends Object
Constructor | 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.
|
Modifier and Type | Method | Description |
---|---|---|
Bson |
getKeys() |
Gets the index keys.
|
IndexOptions |
getOptions() |
Gets the index options.
|
String |
toString() |
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()