K - Key type.V - Value type.public class ScoredValueListOutput<K,V> extends CommandOutput<K,V,List<ScoredValue<V>>> implements StreamingOutput<ScoredValue<V>>
List of values and their associated scores.StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
ScoredValueListOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
StreamingOutput.Subscriber<ScoredValue<V>> |
getSubscriber()
Retrieves the
StreamingOutput.Subscriber. |
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.
|
void |
setSubscriber(StreamingOutput.Subscriber<ScoredValue<V>> subscriber)
Sets the
StreamingOutput.Subscriber. |
complete, decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toStringpublic ScoredValueListOutput(RedisCodec<K,V> codec)
public void set(ByteBuffer bytes)
CommandOutputnull. Concrete CommandOutput implementations must
override this method to decode bulk/bytes response values.set in class CommandOutput<K,V,List<ScoredValue<V>>>bytes - The command output, or null.public void set(double number)
CommandOutputCommandOutput implementations must override this
method to decode double response values.set in class CommandOutput<K,V,List<ScoredValue<V>>>number - The command output.public void multi(int count)
CommandOutputmulti in class CommandOutput<K,V,List<ScoredValue<V>>>count - expected number of elements in this multi sequence.public void setSubscriber(StreamingOutput.Subscriber<ScoredValue<V>> subscriber)
StreamingOutputStreamingOutput.Subscriber.setSubscriber in interface StreamingOutput<ScoredValue<V>>public StreamingOutput.Subscriber<ScoredValue<V>> getSubscriber()
StreamingOutputStreamingOutput.Subscriber.getSubscriber in interface StreamingOutput<ScoredValue<V>>Copyright © 2022 lettuce.io. All rights reserved.