K - Key type.V - Value type.public class ValueDoubleMapOutput<K,V> extends CommandOutput<K,V,Map<V,Double>>
Map of values and Doubles output. This output processes Redis responses into a map where keys are of type V (values
from the codec) and values are of type Double.
This is particularly useful for commands that return elements with scores, such as VSIM with WITHSCORES option.
codec, error, output| Constructor and Description |
|---|
ValueDoubleMapOutput(RedisCodec<K,V> codec)
Initialize a new
ValueDoubleMapOutput. |
| Modifier and Type | Method and Description |
|---|---|
void |
multi(int count)
Mark the beginning of a multi sequence (array).
|
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, decodeString, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toStringpublic ValueDoubleMapOutput(RedisCodec<K,V> codec)
ValueDoubleMapOutput.codec - Codec used to decode keys and values, must not be null.public void set(ByteBuffer bytes)
CommandOutputnull. Concrete CommandOutput implementations must
override this method to decode bulk/bytes response values.public void set(double number)
CommandOutputCommandOutput implementations must override this
method to decode double response values.public void multi(int count)
CommandOutputCopyright © 2025 lettuce.io. All rights reserved.