Class RedisGeoCommands.GeoRadiusCommandArgs
java.lang.Object
org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs
- All Implemented Interfaces:
Cloneable,RedisGeoCommands.GeoCommandArgs
- Enclosing interface:
- RedisGeoCommands
public static class RedisGeoCommands.GeoRadiusCommandArgs
extends RedisGeoCommands.GeoSearchCommandArgs
implements Cloneable
Additional arguments (like count/sort/...) to be used with
RedisGeoCommands.- Since:
- 1.8
- Author:
- Ninad Divadkar, Christoph Strobl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisGeoCommands.GeoCommandArgs
RedisGeoCommands.GeoCommandArgs.GeoCommandFlag -
Field Summary
Fields inherited from class org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs
flags, limit, sortDirection -
Method Summary
Modifier and TypeMethodDescriptionprotected RedisGeoCommands.GeoRadiusCommandArgsclone()getFlags()Sets theRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORDflag to also return the longitude, latitude coordinates of the matching items.Sets theRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDISTflag to also return the distance of the returned items from the specified center.limit(long count) Limit the results to the first N matching items.Create newRedisGeoCommands.GeoRadiusCommandArgs.sort(Sort.Direction direction) Apply a sort direction.Sort returned items from the nearest to the furthest, relative to the center.Sort returned items from the furthest to the nearest, relative to the center.Methods inherited from class org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs
getLimit, getSortDirection, hasAnyLimit, limit, newGeoSearchArgsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.RedisGeoCommands.GeoCommandArgs
hasFlags, hasLimit, hasSortDirection
-
Method Details
-
newGeoRadiusArgs
Create newRedisGeoCommands.GeoRadiusCommandArgs.- Returns:
- never null.
-
includeCoordinates
Sets theRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORDflag to also return the longitude, latitude coordinates of the matching items.- Overrides:
includeCoordinatesin classRedisGeoCommands.GeoSearchCommandArgs- Returns:
-
includeDistance
Sets theRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDISTflag to also return the distance of the returned items from the specified center.- Overrides:
includeDistancein classRedisGeoCommands.GeoSearchCommandArgs- Returns:
- never null.
-
sort
Apply a sort direction.- Overrides:
sortin classRedisGeoCommands.GeoSearchCommandArgs- Returns:
- never null.
- Since:
- 2.6
-
sortAscending
Sort returned items from the nearest to the furthest, relative to the center.- Overrides:
sortAscendingin classRedisGeoCommands.GeoSearchCommandArgs- Returns:
- never null.
-
sortDescending
Sort returned items from the furthest to the nearest, relative to the center.- Overrides:
sortDescendingin classRedisGeoCommands.GeoSearchCommandArgs- Returns:
- never null.
-
limit
Limit the results to the first N matching items.- Overrides:
limitin classRedisGeoCommands.GeoSearchCommandArgs- Parameters:
count-- Returns:
- never null.
-
getFlags
- Specified by:
getFlagsin interfaceRedisGeoCommands.GeoCommandArgs- Overrides:
getFlagsin classRedisGeoCommands.GeoSearchCommandArgs- Returns:
- never null.
-
clone
- Overrides:
clonein classRedisGeoCommands.GeoSearchCommandArgs
-