Class GEOSEARCH
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.geo.GEOSEARCH
- All Implemented Interfaces:
BaseResp3Command, Resp3Command
GEOSEARCH
Returns members of a geospatial index that are within a given geographic area.
- Since:
- 16.2
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BiConsumer<List<GEOSEARCH.GeoResult>, ResponseWriter> createResponseWriter(GeoSearchOptions options) Create response writer based on WITH* flags.protected List<GEOSEARCH.GeoResult> filterAndSort(Collection<ScoredValue<byte[]>> entries, double[] center, GeoSearchOptions options) Filter entries by geographic criteria and sort by distance.perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) Methods inherited from class RespCommand
aclMask, extractKeys, fromByteBuf, fromString, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BaseResp3Command
aclMask
-
Constructor Details
-
GEOSEARCH
public GEOSEARCH()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-
filterAndSort
protected List<GEOSEARCH.GeoResult> filterAndSort(Collection<ScoredValue<byte[]>> entries, double[] center, GeoSearchOptions options) Filter entries by geographic criteria and sort by distance. -
createResponseWriter
protected BiConsumer<List<GEOSEARCH.GeoResult>, ResponseWriter> createResponseWriter(GeoSearchOptions options) Create response writer based on WITH* flags.
-