public class Sort extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Sort.Missing |
static class |
Sort.Sorting |
| Constructor and Description |
|---|
Sort(String field) |
Sort(String field,
Sort.Sorting order) |
public Sort(String field)
public Sort(String field, Sort.Sorting order)
public void setMissing(Object m)
m - should be a Missing object (LAST or FIRST) or a custom value
(String, Integer, Double, ...) that will be used for missing docs as the sort valuepublic void setIgnoreUnmapped()
public com.google.gson.JsonObject toJsonObject()
Copyright © 2017. All rights reserved.