| Modifier and Type | Class and Description |
|---|---|
| public static class | CreateIndexParams.
Internally used object parsed from indexDefinition; see |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| public static final String | |
| public static final String | |
| private String | |
| private String | indexType
One of INDEX or SPATIAL. |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | CreateIndexParams(String
index name indexName, DbDoc special JSON document containing index definition; see indexDefinition)Collection#createIndex(String, DbDoc) descriptionConstructor. |
| public | CreateIndexParams(String
index name indexName, String special JSON document containing index definition; see jsonIndexDefinition)Collection#createIndex(String, String) descriptionConstructor. |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public String | |
| public String | |
| private void |
| fields | back to summary |
|---|---|
| private List<CreateIndexParams. | |
| GEOJSON | back to summary |
|---|---|
| public static final String GEOJSON | |
| INDEX | back to summary |
|---|---|
| public static final String INDEX | |
| indexName | back to summary |
|---|---|
| private String indexName | |
| indexType | back to summary |
|---|---|
| private String indexType One of INDEX or SPATIAL. Default is INDEX and may be omitted. | |
| SPATIAL | back to summary |
|---|---|
| public static final String SPATIAL | |
| CreateIndexParams | back to summary |
|---|---|
| public CreateIndexParams(String indexName, DbDoc indexDefinition) Constructor.
| |
| CreateIndexParams | back to summary |
|---|---|
| public CreateIndexParams(String indexName, String jsonIndexDefinition) Constructor.
| |
| getFields | back to summary |
|---|---|
| public List Get index fields.
| |
| getIndexName | back to summary |
|---|---|
| public String getIndexName() Get index name.
| |
| getIndexType | back to summary |
|---|---|
| public String getIndexType() Get index type.
| |
| init | back to summary |
|---|---|
| private void init(String idxName, DbDoc indexDefinition) | |
Collection#createIndex(String, DbDoc) description.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private Boolean | array
(optional) true if the field is an array |
| private static final String | |
| private String | field
The full document path to the document member or field to be indexed |
| private static final String | |
| private Integer | options
(optional) special option flags for use when decoding GEOJSON data |
| private static final String | |
| private Boolean | required
(optional) true if the field is required to exist in the document. |
| private static final String | |
| private Integer | srid
(optional) srid value for use when decoding GEOJSON data |
| private static final String | |
| private String | type
One of the supported SQL column types to map the field into. |
| Access | Constructor and Description |
|---|---|
| public | IndexField(DbDoc
a special JSON document, part of indexDefinition document, consisting of the following fields:
indexField)
Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: field stringGet the full document path to the document member or field to be indexed. |
| public Integer | |
| public Integer | |
| public String | |
| public Boolean | |
| public Boolean |
| ARRAY | back to summary |
|---|---|
| private static final String ARRAY | |
| array | back to summary |
|---|---|
| private Boolean array (optional) true if the field is an array | |
| FIELD | back to summary |
|---|---|
| private static final String FIELD | |
| field | back to summary |
|---|---|
| private String field The full document path to the document member or field to be indexed | |
| OPTIONS | back to summary |
|---|---|
| private static final String OPTIONS | |
| options | back to summary |
|---|---|
| private Integer options (optional) special option flags for use when decoding GEOJSON data | |
| REQUIRED | back to summary |
|---|---|
| private static final String REQUIRED | |
| required | back to summary |
|---|---|
| private Boolean required (optional) true if the field is required to exist in the document. defaults to false, except for GEOJSON where it defaults to true | |
| SRID | back to summary |
|---|---|
| private static final String SRID | |
| srid | back to summary |
|---|---|
| private Integer srid (optional) srid value for use when decoding GEOJSON data | |
| TYPE | back to summary |
|---|---|
| private static final String TYPE | |
| type | back to summary |
|---|---|
| private String type One of the supported SQL column types to map the field into. For numeric types, the optional UNSIGNED keyword may follow. For the TEXT type, the length to consider for indexing may be added. | |
| IndexField | back to summary |
|---|---|
| public IndexField(DbDoc indexField) Constructor.
| |
| getField | back to summary |
|---|---|
| public String getField() Get the full document path to the document member or field to be indexed.
| |
| getOptions | back to summary |
|---|---|
| public Integer getOptions() Get options for decoding GEOJSON data.
| |
| getSrid | back to summary |
|---|---|
| public Integer getSrid() Get srid for decoding GEOJSON data.
| |
| getType | back to summary |
|---|---|
| public String getType() Get column type.
| |
| isArray | back to summary |
|---|---|
| public Boolean isArray() Is the field an array?
| |
| isRequired | back to summary |
|---|---|
| public Boolean isRequired() Is the field required to exist in the document?
| |