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.
|
java.lang.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()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved