Modifiers | Name | Description |
---|---|---|
static java.lang.String |
INDEX_TYPE |
|
static java.lang.String |
INDEX_TYPE_2D |
|
static java.lang.String |
INDEX_TYPE_2DSPHERE |
|
private java.util.Map |
indexAttributes |
|
private boolean |
reference |
Whether this attribute is a database reference |
Type | Name and description |
---|---|
java.lang.String |
field |
java.util.Map |
indexAttributes |
boolean |
reference Whether this attribute is a database reference |
Constructor and description |
---|
MongoAttribute
() |
Type Params | Return Type | Name and description |
---|---|---|
|
MongoAttribute |
field(java.lang.String name) Configures the field name to map to |
|
MongoAttribute |
geoIndex(java.lang.String indexType) Sets the geo index type |
|
java.lang.String |
getField()
|
|
java.util.Map |
getIndexAttributes()
|
|
MongoAttribute |
index(java.lang.String type) Configures the index type |
|
MongoAttribute |
indexAttributes(java.util.Map indexAttributes) Configures the index attributes |
|
void |
initIndexAttributes() |
|
void |
setField(java.lang.String name) Sets the field name to map to |
|
void |
setGeoIndex(java.lang.String indexType) Sets the geo index type |
|
void |
setIndex(java.lang.String type) Sets the index type |
|
void |
setIndexAttributes(java.util.Map indexAttributes) Sets index attributes |
Whether this attribute is a database reference
Whether this attribute is a database reference
Configures the field name to map to
name
- The name of the fieldSets the geo index type
indexType
- The geo index type
Configures the index type
type
- The index typeConfigures the index attributes
indexAttributes
- The index attributesSets the field name to map to
name
- The field nameSets the geo index type
indexType
- The geo index typeSets the index type
type
- The index typeSets index attributes
indexAttributes
- The index attributesGroovy Documentation