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