public static class RedisGeoCommands.GeoSearchCommandArgs extends Object implements RedisGeoCommands.GeoCommandArgs, Cloneable
RedisGeoCommands
.RedisGeoCommands.GeoCommandArgs.GeoCommandFlag
Modifier and Type | Field and Description |
---|---|
protected Set<RedisGeoCommands.GeoCommandArgs.GeoCommandFlag> |
flags |
protected Long |
limit |
protected org.springframework.data.domain.Sort.Direction |
sortDirection |
Modifier and Type | Method and Description |
---|---|
protected RedisGeoCommands.GeoSearchCommandArgs |
clone() |
Set<? extends RedisGeoCommands.GeoCommandArgs.GeoCommandFlag> |
getFlags() |
Long |
getLimit() |
org.springframework.data.domain.Sort.Direction |
getSortDirection() |
boolean |
hasAnyLimit() |
RedisGeoCommands.GeoSearchCommandArgs |
includeCoordinates()
Sets the
RedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORD flag to also return the longitude, latitude coordinates of the matching items. |
RedisGeoCommands.GeoSearchCommandArgs |
includeDistance()
Sets the
RedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDIST flag to also return the distance of the returned items from the specified center. |
RedisGeoCommands.GeoSearchCommandArgs |
limit(long count)
Limit the results to the first N matching items.
|
RedisGeoCommands.GeoSearchCommandArgs |
limit(long count,
boolean any)
Limit the results to the first N matching items.
|
static RedisGeoCommands.GeoSearchCommandArgs |
newGeoSearchArgs()
Create new
RedisGeoCommands.GeoSearchCommandArgs . |
RedisGeoCommands.GeoSearchCommandArgs |
sort(org.springframework.data.domain.Sort.Direction direction)
Apply a sort direction.
|
RedisGeoCommands.GeoSearchCommandArgs |
sortAscending()
Sort returned items from the nearest to the furthest, relative to the center.
|
RedisGeoCommands.GeoSearchCommandArgs |
sortDescending()
Sort returned items from the furthest to the nearest, relative to the center.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasFlags, hasLimit, hasSortDirection
protected final Set<RedisGeoCommands.GeoCommandArgs.GeoCommandFlag> flags
@Nullable protected org.springframework.data.domain.Sort.Direction sortDirection
public static RedisGeoCommands.GeoSearchCommandArgs newGeoSearchArgs()
RedisGeoCommands.GeoSearchCommandArgs
.public RedisGeoCommands.GeoSearchCommandArgs includeCoordinates()
RedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORD
flag to also return the longitude, latitude coordinates of the matching items.public RedisGeoCommands.GeoSearchCommandArgs includeDistance()
RedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDIST
flag to also return the distance of the returned items from the specified center.public RedisGeoCommands.GeoSearchCommandArgs sort(org.springframework.data.domain.Sort.Direction direction)
public RedisGeoCommands.GeoSearchCommandArgs sortAscending()
public RedisGeoCommands.GeoSearchCommandArgs sortDescending()
public RedisGeoCommands.GeoSearchCommandArgs limit(long count)
count
- public RedisGeoCommands.GeoSearchCommandArgs limit(long count, boolean any)
count
- any
- public Set<? extends RedisGeoCommands.GeoCommandArgs.GeoCommandFlag> getFlags()
getFlags
in interface RedisGeoCommands.GeoCommandArgs
@Nullable public Long getLimit()
getLimit
in interface RedisGeoCommands.GeoCommandArgs
@Nullable public org.springframework.data.domain.Sort.Direction getSortDirection()
getSortDirection
in interface RedisGeoCommands.GeoCommandArgs
public boolean hasAnyLimit()
protected RedisGeoCommands.GeoSearchCommandArgs clone()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.