java.lang.Object
io.lettuce.core.output.CommandOutput<K,V,List<GeoWithin<V>>>
io.lettuce.core.output.GeoWithinListOutput<K,V>
- All Implemented Interfaces:
StreamingOutput<GeoWithin<V>>
public class GeoWithinListOutput<K,V> extends CommandOutput<K,V,List<GeoWithin<V>>> implements StreamingOutput<GeoWithin<V>>
A list output that creates a list with either double/long or
GeoCoordinates's.- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.lettuce.core.output.StreamingOutput
StreamingOutput.Subscriber<T> -
Field Summary
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output -
Constructor Summary
Constructors Constructor Description GeoWithinListOutput(RedisCodec<K,V> codec, boolean withDistance, boolean withHash, boolean withCoordinates) -
Method Summary
Modifier and Type Method Description voidcomplete(int depth)Mark the command output complete.StreamingOutput.Subscriber<GeoWithin<V>>getSubscriber()Retrieves theStreamingOutput.Subscriber.voidset(double number)Update the command output with a floating-point number.voidset(long integer)Update the command output with a 64-bit signed integer.voidset(ByteBuffer bytes)Update the command output with a sequence of bytes, ornull.voidsetSubscriber(StreamingOutput.Subscriber<GeoWithin<V>> subscriber)Sets theStreamingOutput.Subscriber.Methods inherited from class io.lettuce.core.output.CommandOutput
decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, setBigNumber, setError, setError, setSingle, toString
-
Constructor Details
-
GeoWithinListOutput
public GeoWithinListOutput(RedisCodec<K,V> codec, boolean withDistance, boolean withHash, boolean withCoordinates)
-
-
Method Details
-
set
public void set(long integer)Description copied from class:CommandOutputUpdate the command output with a 64-bit signed integer. ConcreteCommandOutputimplementations must override this method to decodenumber(integer) response values. -
set
Description copied from class:CommandOutputUpdate the command output with a sequence of bytes, ornull. ConcreteCommandOutputimplementations must override this method to decodebulk/bytes response values. -
set
public void set(double number)Description copied from class:CommandOutputUpdate the command output with a floating-point number. ConcreteCommandOutputimplementations must override this method to decodedoubleresponse values. -
complete
public void complete(int depth)Description copied from class:CommandOutputMark the command output complete. -
setSubscriber
Description copied from interface:StreamingOutputSets theStreamingOutput.Subscriber.- Specified by:
setSubscriberin interfaceStreamingOutput<K>
-
getSubscriber
Description copied from interface:StreamingOutputRetrieves theStreamingOutput.Subscriber.- Specified by:
getSubscriberin interfaceStreamingOutput<K>- Returns:
-