|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
Creates a default IndexField with the given key and Order . |
boolean |
equals(Object obj)
|
static IndexField |
geo(String key)
Creates a geo IndexField for the given key. |
String |
getKey()
|
Order |
getOrder()
Returns the order of the IndexField or null in case we have a geo index field. |
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 |
---|
public static IndexField create(String key, Order order)
IndexField
with the given key and Order
.
key
- must not be null or emtpy.order
- must not be null.
public static IndexField geo(String key)
IndexField
for the given key.
key
- must not be null or empty.
public String getKey()
public Order getOrder()
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 Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |