public class GeoArgs extends Object implements CompositeArgument
| 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)
Build command arguments and contribute arguments to
CommandArgs. |
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()
thispublic GeoArgs withCoordinates()
thispublic GeoArgs withHash()
thispublic GeoArgs withCount(long count)
count entries.count - number greater 0thispublic boolean isWithDistance()
public boolean isWithCoordinates()
public boolean isWithHash()
public GeoArgs asc()
thispublic GeoArgs desc()
thispublic GeoArgs sort(GeoArgs.Sort sort)
sort - sort order, must not be nullthispublic <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2018 lettuce.io. All rights reserved.