public class IndexModel
extends java.lang.Object
| 构造器和说明 |
|---|
IndexModel(Bson keys)
Construct an instance with the given keys.
|
IndexModel(Bson keys,
IndexOptions options)
Construct an instance with the given keys and options.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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()