public class GeoRadiusStoreArgs<K> extends Object implements CompositeArgument
GeoRadiusStoreArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoRadiusStoreArgs.Builder
Builder entry points for
GeoRadiusStoreArgs. |
| Constructor and Description |
|---|
GeoRadiusStoreArgs() |
| Modifier and Type | Method and Description |
|---|---|
GeoRadiusStoreArgs |
asc()
Sort results ascending.
|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
GeoRadiusStoreArgs |
desc()
Sort results descending.
|
K |
getStoreDistKey() |
K |
getStoreKey() |
GeoRadiusStoreArgs |
sort(GeoArgs.Sort sort)
Sort results.
|
GeoRadiusStoreArgs |
withCount(long count)
Limit results to
count entries. |
GeoRadiusStoreArgs |
withStore(K storeKey)
Store the resulting members with their location in the new Geo set
storeKey. |
GeoRadiusStoreArgs |
withStoreDist(K storeKey)
Store the resulting members with their distance in the sorted set
storeKey. |
public GeoRadiusStoreArgs withStore(K storeKey)
storeKey. Cannot be used together with
withStoreDist(Object).storeKey - the destination key.this GeoRadiusStoreArgs.public GeoRadiusStoreArgs withStoreDist(K storeKey)
storeKey. Cannot be used together with
withStore(Object).storeKey - the destination key.this GeoRadiusStoreArgs.public GeoRadiusStoreArgs withCount(long count)
count entries.count - number greater 0.this GeoRadiusStoreArgs.public GeoRadiusStoreArgs asc()
this GeoRadiusStoreArgs.public GeoRadiusStoreArgs desc()
this GeoRadiusStoreArgs.public K getStoreKey()
public K getStoreDistKey()
public GeoRadiusStoreArgs sort(GeoArgs.Sort sort)
sort - sort order, must not be null.this GeoRadiusStoreArgs.public <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 © 2020 lettuce.io. All rights reserved.