public final class Sort extends Object
Modifier and Type | Method and Description |
---|---|
static IntegerElement |
asc(String field)
Creates an ascending order specification, e.g.,
{ <field> : 1 }.
|
static IntegerElement |
desc(String field)
Creates an descending order specification, e.g.,
{ <field> : -1 }.
|
static StringElement |
geo2d(String field)
Creates an 2D index specification, e.g.,
{ <field> : "2d" }.
|
public static IntegerElement asc(String field)
field
- The field to create thepublic static IntegerElement desc(String field)
field
- The field to create thepublic static StringElement geo2d(String field)
field
- The field to create theCopyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.