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