public final class IndexField extends Object
Modifier and Type | Method and Description |
---|---|
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() |
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.Copyright © 2012. All Rights Reserved.