|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.index.IndexField
public final class IndexField
Value object for an index field.
| Method Summary | |
|---|---|
static IndexField |
create(String key,
Order order)
Deprecated. use #create(String, Direction). |
static IndexField |
create(String key,
Sort.Direction order)
|
boolean |
equals(Object obj)
|
static IndexField |
geo(String key)
Creates a geo IndexField for the given key. |
Sort.Direction |
getDirection()
Returns the direction of the IndexField or null in case we have a geo index field. |
String |
getKey()
|
Order |
getOrder()
Deprecated. use getDirection() instead. |
int |
hashCode()
|
boolean |
isGeo()
Returns whether the IndexField is a geo index field. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
@Deprecated
public static IndexField create(String key,
Order order)
#create(String, Direction).
IndexField with the given key and Order.
key - must not be null or emtpy.direction - must not be null.
public static IndexField create(String key,
Sort.Direction order)
public static IndexField geo(String key)
IndexField for the given key.
key - must not be null or empty.
public String getKey()
@Deprecated public Order getOrder()
getDirection() instead.
IndexField or null in case we have a geo index field.
public Sort.Direction getDirection()
IndexField or null in case we have a geo index field.
public boolean isGeo()
IndexField is a geo index field.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||