java.lang.Object
io.lettuce.core.output.CommandOutput<K,V,List<KeyValue<K,V>>>
io.lettuce.core.output.KeyValueListOutput<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
StreamingOutput<KeyValue<K,V>>
public class KeyValueListOutput<K,V> extends CommandOutput<K,V,List<KeyValue<K,V>>> implements StreamingOutput<KeyValue<K,V>>
List of KeyValue output. Can be either used to decode key-value tuples (e.g. HGETALL) of for a pure
value response where keys are supplied as input (for e.g. HMGET).- 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 KeyValueListOutput(RedisCodec<K,V> codec)KeyValueListOutput(RedisCodec<K,V> codec, Iterable<K> keys) -
Method Summary
Modifier and Type Method Description StreamingOutput.Subscriber<KeyValue<K,V>>getSubscriber()Retrieves theStreamingOutput.Subscriber.voidmulti(int count)Mark the beginning of a multi sequence (array).voidset(ByteBuffer bytes)Update the command output with a sequence of bytes, ornull.voidsetSubscriber(StreamingOutput.Subscriber<KeyValue<K,V>> subscriber)Sets theStreamingOutput.Subscriber.Methods inherited from class io.lettuce.core.output.CommandOutput
complete, decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, set, setBigNumber, setError, setError, setSingle, toString
-
Constructor Details
-
KeyValueListOutput
-
KeyValueListOutput
-
-
Method Details
-
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. -
multi
public void multi(int count)Description copied from class:CommandOutputMark the beginning of a multi sequence (array). -
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:
-