Class NestedMultiOutput<K,​V>

  • Type Parameters:
    K - Key type.
    V - Value type.
    Direct Known Subclasses:
    ArrayOutput, PushOutput

    public class NestedMultiOutput<K,​V>
    extends CommandOutput<K,​V,​List<Object>>
    List of flat arrays, possibly deeply nested. Decodes simple strings through StringCodec.UTF8.
    Author:
    Will Glozer, Mark Paluch, Julien Ruaux
    • Constructor Detail

      • NestedMultiOutput

        public NestedMultiOutput​(RedisCodec<K,​V> codec)
    • Method Detail

      • set

        public void set​(long integer)
        Description copied from class: CommandOutput
        Update the command output with a 64-bit signed integer. Concrete CommandOutput implementations must override this method to decode number (integer) response values.
        Overrides:
        set in class CommandOutput<K,​V,​List<Object>>
        Parameters:
        integer - The command output.
      • set

        public void set​(double number)
        Description copied from class: CommandOutput
        Update the command output with a floating-point number. Concrete CommandOutput implementations must override this method to decode double response values.
        Overrides:
        set in class CommandOutput<K,​V,​List<Object>>
        Parameters:
        number - The command output.
      • set

        public void set​(ByteBuffer bytes)
        Description copied from class: CommandOutput
        Update the command output with a sequence of bytes, or null. Concrete CommandOutput implementations must override this method to decode bulk/bytes response values.
        Overrides:
        set in class CommandOutput<K,​V,​List<Object>>
        Parameters:
        bytes - The command output, or null.
      • setSingle

        public void setSingle​(ByteBuffer bytes)
        Description copied from class: CommandOutput
        Update the command output with a sequence of bytes, or null representing a simple string. Concrete CommandOutput implementations must override this method to decode single/bytes response values.
        Overrides:
        setSingle in class CommandOutput<K,​V,​List<Object>>
        Parameters:
        bytes - The command output, or null.
      • complete

        public void complete​(int depth)
        Description copied from class: CommandOutput
        Mark the command output complete.
        Overrides:
        complete in class CommandOutput<K,​V,​List<Object>>
        Parameters:
        depth - Remaining depth of output queue.
      • multi

        public void multi​(int count)
        Description copied from class: CommandOutput
        Mark the beginning of a multi sequence (array).
        Overrides:
        multi in class CommandOutput<K,​V,​List<Object>>
        Parameters:
        count - expected number of elements in this multi sequence.