public class GeoArgs extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoArgs.Sort
Sort order.
|
static class |
GeoArgs.Unit
Supported geo unit.
|
Constructor and Description |
---|
GeoArgs() |
Modifier and Type | Method and Description |
---|---|
GeoArgs |
asc()
Sort results ascending.
|
<K,V> void |
build(CommandArgs<K,V> args) |
GeoArgs |
desc()
Sort results descending.
|
boolean |
isWithCoordinates() |
boolean |
isWithDistance() |
boolean |
isWithHash() |
GeoArgs |
sort(GeoArgs.Sort sort)
Sort results.
|
GeoArgs |
withCoordinates()
Request coordinates for results.
|
GeoArgs |
withCount(long count)
Limit results to
count entries. |
GeoArgs |
withDistance()
Request distance for results.
|
GeoArgs |
withHash()
Request geohash for results.
|
public GeoArgs withDistance()
this
public GeoArgs withCoordinates()
this
public GeoArgs withHash()
this
public GeoArgs withCount(long count)
count
entries.count
- number greater 0this
public boolean isWithDistance()
public boolean isWithCoordinates()
public boolean isWithHash()
public GeoArgs asc()
this
public GeoArgs desc()
this
public GeoArgs sort(GeoArgs.Sort sort)
sort
- sort order, must not be nullthis
public <K,V> void build(CommandArgs<K,V> args)
Copyright © 2016. All rights reserved.