K - Key type.V - Value type.public class IndexedValueListOutput<K,V> extends CommandOutput<K,V,List<IndexedValue<V>>> implements StreamingOutput<IndexedValue<V>>
List of IndexedValue items, parsing alternating index/value pairs from Redis array responses.
Used for ARSCAN and ARGREP WITHVALUES commands which return flat arrays of
[index, value, index, value, ...].
StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
IndexedValueListOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
StreamingOutput.Subscriber<IndexedValue<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(long integer)
Update the command output with a 64-bit signed integer.
|
void |
setSubscriber(StreamingOutput.Subscriber<IndexedValue<V>> subscriber)
Sets the
StreamingOutput.Subscriber. |
complete, decodeString, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toStringpublic IndexedValueListOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class CommandOutput<K,V,List<IndexedValue<V>>>integer - The command output.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<IndexedValue<V>>>bytes - The command output, or null.public void multi(int count)
CommandOutputmulti in class CommandOutput<K,V,List<IndexedValue<V>>>count - expected number of elements in this multi sequence.public void setSubscriber(StreamingOutput.Subscriber<IndexedValue<V>> subscriber)
StreamingOutputStreamingOutput.Subscriber.setSubscriber in interface StreamingOutput<IndexedValue<V>>public StreamingOutput.Subscriber<IndexedValue<V>> getSubscriber()
StreamingOutputStreamingOutput.Subscriber.getSubscriber in interface StreamingOutput<IndexedValue<V>>Copyright © 2026 lettuce.io. All rights reserved.