K
- Key type.V
- Value type.public class MapOutput<K,V> extends CommandOutput<K,V,Map<K,V>>
Map
of keys and values output.codec, error, output
Constructor and Description |
---|
MapOutput(RedisCodec<K,V> codec) |
Modifier and Type | Method and Description |
---|---|
void |
multi(int count)
Mark the beginning of a multi sequence (array).
|
void |
set(boolean flag)
Update the command output with a boolean.
|
void |
set(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null . |
void |
set(double number)
Update the command output with a floating-point number.
|
void |
set(long integer)
Update the command output with a 64-bit signed integer.
|
complete, decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, setBigNumber, setError, setError, setSingle, toString
public MapOutput(RedisCodec<K,V> codec)
public void set(ByteBuffer bytes)
CommandOutput
null
. Concrete CommandOutput
implementations must
override this method to decode bulk
/bytes response values.public void set(long integer)
CommandOutput
CommandOutput
implementations must override this
method to decode number
(integer) response values.public void set(double number)
CommandOutput
CommandOutput
implementations must override this
method to decode double
response values.public void set(boolean flag)
CommandOutput
CommandOutput
implementations must override this method to
decode boolean
response values.public void multi(int count)
CommandOutput
Copyright © 2023 lettuce.io. All rights reserved.