public static class CreateIndexParams.IndexField
extends java.lang.Object
Collection.createIndex(String, DbDoc) description.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Boolean |
array
(optional) true if the field is an array
|
private static java.lang.String |
ARRAY |
private java.lang.String |
field
The full document path to the document member or field to be indexed
|
private static java.lang.String |
FIELD |
private java.lang.Integer |
options
(optional) special option flags for use when decoding GEOJSON data
|
private static java.lang.String |
OPTIONS |
private java.lang.Boolean |
required
(optional) true if the field is required to exist in the document.
|
private static java.lang.String |
REQUIRED |
private java.lang.Integer |
srid
(optional) srid value for use when decoding GEOJSON data
|
private static java.lang.String |
SRID |
private java.lang.String |
type
One of the supported SQL column types to map the field into.
|
private static java.lang.String |
TYPE |
| Constructor and Description |
|---|
IndexField(DbDoc indexField)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getField()
Get the full document path to the document member or field to be indexed.
|
java.lang.Integer |
getOptions()
Get options for decoding GEOJSON data.
|
java.lang.Integer |
getSrid()
Get srid for decoding GEOJSON data.
|
java.lang.String |
getType()
Get column type.
|
java.lang.Boolean |
isArray()
Is the field an array?
|
java.lang.Boolean |
isRequired()
Is the field required to exist in the document?
|
private static final java.lang.String FIELD
private static final java.lang.String TYPE
private static final java.lang.String REQUIRED
private static final java.lang.String OPTIONS
private static final java.lang.String SRID
private static final java.lang.String ARRAY
private java.lang.String field
private java.lang.String type
private java.lang.Boolean required
private java.lang.Integer options
private java.lang.Integer srid
private java.lang.Boolean array
public IndexField(DbDoc indexField)
indexField - a special JSON document, part of indexDefinition document, consisting of the following fields:
public java.lang.String getField()
public java.lang.String getType()
public java.lang.Boolean isRequired()
public java.lang.Integer getOptions()
public java.lang.Integer getSrid()
public java.lang.Boolean isArray()