K
- Key type.V
- Value type.public class KeyValueOfScoredValueOutput<K,V> extends CommandOutput<K,V,KeyValue<K,ScoredValue<V>>>
codec, error, output
Constructor and Description |
---|
KeyValueOfScoredValueOutput(RedisCodec<K,V> codec,
K defaultKey) |
Modifier and Type | Method and Description |
---|---|
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.
|
complete, decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toString
public KeyValueOfScoredValueOutput(RedisCodec<K,V> codec, K defaultKey)
public void set(ByteBuffer bytes)
CommandOutput
null
. Concrete CommandOutput
implementations must
override this method to decode bulk
/bytes response values.set
in class CommandOutput<K,V,KeyValue<K,ScoredValue<V>>>
bytes
- The command output, or null.public void set(double number)
CommandOutput
CommandOutput
implementations must override this
method to decode double
response values.set
in class CommandOutput<K,V,KeyValue<K,ScoredValue<V>>>
number
- The command output.Copyright © 2023 lettuce.io. All rights reserved.