Package io.lettuce.core.output
Class GeoCoordinatesListOutput<K,V>
- java.lang.Object
-
- io.lettuce.core.output.CommandOutput<K,V,List<GeoCoordinates>>
-
- io.lettuce.core.output.GeoCoordinatesListOutput<K,V>
-
- All Implemented Interfaces:
StreamingOutput<GeoCoordinates>
public class GeoCoordinatesListOutput<K,V> extends CommandOutput<K,V,List<GeoCoordinates>> implements StreamingOutput<GeoCoordinates>
A list output that creates a list withGeoCoordinates
'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 GeoCoordinatesListOutput(RedisCodec<K,V> codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingOutput.Subscriber<GeoCoordinates>
getSubscriber()
Retrieves theStreamingOutput.Subscriber
.void
multi(int count)
Mark the beginning of a multi sequence (array).void
set(double number)
Update the command output with a floating-point number.void
set(ByteBuffer bytes)
Update the command output with a sequence of bytes, ornull
.void
setSubscriber(StreamingOutput.Subscriber<GeoCoordinates> subscriber)
Sets theStreamingOutput.Subscriber
.-
Methods inherited from class io.lettuce.core.output.CommandOutput
complete, decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toString
-
-
-
-
Constructor Detail
-
GeoCoordinatesListOutput
public GeoCoordinatesListOutput(RedisCodec<K,V> codec)
-
-
Method Detail
-
set
public void set(ByteBuffer bytes)
Description copied from class:CommandOutput
Update the command output with a sequence of bytes, ornull
. ConcreteCommandOutput
implementations must override this method to decodebulk
/bytes response values.- Overrides:
set
in classCommandOutput<K,V,List<GeoCoordinates>>
- Parameters:
bytes
- The command output, or null.
-
set
public void set(double number)
Description copied from class:CommandOutput
Update the command output with a floating-point number. ConcreteCommandOutput
implementations must override this method to decodedouble
response values.- Overrides:
set
in classCommandOutput<K,V,List<GeoCoordinates>>
- Parameters:
number
- The command output.
-
multi
public void multi(int count)
Description copied from class:CommandOutput
Mark the beginning of a multi sequence (array).- Overrides:
multi
in classCommandOutput<K,V,List<GeoCoordinates>>
- Parameters:
count
- expected number of elements in this multi sequence.
-
setSubscriber
public void setSubscriber(StreamingOutput.Subscriber<GeoCoordinates> subscriber)
Description copied from interface:StreamingOutput
Sets theStreamingOutput.Subscriber
.- Specified by:
setSubscriber
in interfaceStreamingOutput<K>
-
getSubscriber
public StreamingOutput.Subscriber<GeoCoordinates> getSubscriber()
Description copied from interface:StreamingOutput
Retrieves theStreamingOutput.Subscriber
.- Specified by:
getSubscriber
in interfaceStreamingOutput<K>
- Returns:
-
-