java.lang.Object
io.lettuce.core.output.CommandOutput<K,V,Map<K,Object>>
io.lettuce.core.output.GenericMapOutput<K,V>
- Type Parameters:
K- Key type.V- Value type.
public class GenericMapOutput<K,V> extends CommandOutput<K,V,Map<K,Object>>
Map of keys and objects output.- Since:
- 6.0/RESP3
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output -
Constructor Summary
Constructors Constructor Description GenericMapOutput(RedisCodec<K,V> codec) -
Method Summary
Modifier and Type Method Description voidmulti(int count)Mark the beginning of a multi sequence (array).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.voidsetBigNumber(ByteBuffer bytes)Update the command output with a big number.Methods inherited from class io.lettuce.core.output.CommandOutput
complete, decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, setError, setError, setSingle, toString
-
Constructor Details
-
GenericMapOutput
-
-
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. -
setBigNumber
Description copied from class:CommandOutputUpdate the command output with a big number. ConcreteCommandOutputimplementations must override this method to decodebig numberresponse values.- Overrides:
setBigNumberin classCommandOutput<K,V,Map<K,Object>>- Parameters:
bytes- The command output, or null.
-
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
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. -
multi
public void multi(int count)Description copied from class:CommandOutputMark the beginning of a multi sequence (array).
-