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. |
boolean |
isText()
Returns wheter the
IndexField is a text index field. |
static IndexField |
text(String key,
Float weight)
Creates a text
IndexField for the given key. |
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 static IndexField text(String key, Float weight)
IndexField for the given key.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.Type#GEO.public boolean isText()
IndexField is a text index field.Type#TEXTCopyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.