public class Sort extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CUSTOM_TYPE |
static int |
DOC_TYPE |
static int |
DOUBLE_TYPE |
static int |
FLOAT_TYPE |
static int |
GEO_DISTANCE_TYPE |
static int |
INT_TYPE |
static int |
LONG_TYPE |
static int |
SCORE_TYPE |
static int |
STRING_TYPE |
Constructor and Description |
---|
Sort() |
Sort(String fieldName,
boolean reverse) |
Sort(String fieldName,
int type,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
String |
getFieldName() |
int |
getType() |
boolean |
isReverse() |
void |
setFieldName(String fieldName) |
void |
setReverse(boolean reverse) |
void |
setType(int type) |
String |
toString() |
public static final int CUSTOM_TYPE
public static final int DOC_TYPE
public static final int DOUBLE_TYPE
public static final int FLOAT_TYPE
public static final int GEO_DISTANCE_TYPE
public static final int INT_TYPE
public static final int LONG_TYPE
public static final int SCORE_TYPE
public static final int STRING_TYPE
public Sort()
public Sort(String fieldName, boolean reverse)
public Sort(String fieldName, int type, boolean reverse)