Class RedisGeoCommands.GeoSearchCommandArgs
java.lang.Object
org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs
- All Implemented Interfaces:
- Cloneable,- RedisGeoCommands.GeoCommandArgs
- Direct Known Subclasses:
- RedisGeoCommands.GeoRadiusCommandArgs
- Enclosing interface:
- RedisGeoCommands
public static class RedisGeoCommands.GeoSearchCommandArgs
extends Object
implements RedisGeoCommands.GeoCommandArgs, Cloneable
Additional arguments (like count/sort/...) to be used with 
RedisGeoCommands.- Since:
- 2.6
- Author:
- Mark Paluch, Christoph Strobl
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisGeoCommands.GeoCommandArgsRedisGeoCommands.GeoCommandArgs.GeoCommandFlag
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Set<RedisGeoCommands.GeoCommandArgs.GeoCommandFlag>protected Longprotected Sort.Direction
- 
Method SummaryModifier and TypeMethodDescriptionprotected RedisGeoCommands.GeoSearchCommandArgsclone()getFlags()getLimit()booleanSets 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.limit(long count, boolean any) Limit the results to the first N matching items.Create newRedisGeoCommands.GeoSearchCommandArgs.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 java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.RedisGeoCommands.GeoCommandArgshasFlags, hasLimit, hasSortDirection
- 
Field Details- 
flags
- 
limit
- 
sortDirection
 
- 
- 
Method Details- 
newGeoSearchArgsCreate newRedisGeoCommands.GeoSearchCommandArgs.- Returns:
- never null.
 
- 
includeCoordinatesSets theRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORDflag to also return the longitude, latitude coordinates of the matching items.- Returns:
 
- 
includeDistanceSets theRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDISTflag to also return the distance of the returned items from the specified center.- Returns:
- never null.
 
- 
sortApply a sort direction.- Returns:
- never null.
 
- 
sortAscendingSort returned items from the nearest to the furthest, relative to the center.- Returns:
- never null.
 
- 
sortDescendingSort returned items from the furthest to the nearest, relative to the center.- Returns:
- never null.
 
- 
limitLimit the results to the first N matching items.- Parameters:
- count-
- Returns:
- never null.
 
- 
limitLimit the results to the first N matching items.- Parameters:
- count-
- any-
- Returns:
- never null.
 
- 
getFlags- Specified by:
- getFlagsin interface- RedisGeoCommands.GeoCommandArgs
- Returns:
- never null.
 
- 
getLimit- Specified by:
- getLimitin interface- RedisGeoCommands.GeoCommandArgs
- Returns:
- can be null.
 
- 
getSortDirection- Specified by:
- getSortDirectionin interface- RedisGeoCommands.GeoCommandArgs
- Returns:
- can be null.
 
- 
hasAnyLimitpublic boolean hasAnyLimit()
- 
clone
 
-