public class CreateIndexParams
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateIndexParams.IndexField
Internally used object parsed from indexDefinition; see
Collection.createIndex(String, DbDoc) description. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GEOJSON |
static java.lang.String |
INDEX |
static java.lang.String |
SPATIAL |
Constructor and Description |
---|
CreateIndexParams(java.lang.String indexName,
DbDoc indexDefinition)
Constructor.
|
CreateIndexParams(java.lang.String indexName,
java.lang.String jsonIndexDefinition)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CreateIndexParams.IndexField> |
getFields()
Get index fields.
|
java.lang.String |
getIndexName()
Get index name.
|
java.lang.String |
getIndexType()
Get index type.
|
public static final java.lang.String INDEX
public static final java.lang.String SPATIAL
public static final java.lang.String GEOJSON
public CreateIndexParams(java.lang.String indexName, DbDoc indexDefinition)
indexName
- index nameindexDefinition
- special JSON document containing index definition; see Collection.createIndex(String, DbDoc)
descriptionpublic CreateIndexParams(java.lang.String indexName, java.lang.String jsonIndexDefinition)
indexName
- index namejsonIndexDefinition
- special JSON document containing index definition; see Collection.createIndex(String, String)
descriptionpublic java.lang.String getIndexName()
public java.lang.String getIndexType()
public java.util.List<CreateIndexParams.IndexField> getFields()
CreateIndexParams.IndexField
objects