Module lettuce.core

Class ScanOutput<K,​V,​T extends ScanCursor>

java.lang.Object
io.lettuce.core.output.CommandOutput<K,​V,​T>
io.lettuce.core.output.ScanOutput<K,​V,​T>
Type Parameters:
K - Key type.
V - Value type.
T - Cursor type.
Direct Known Subclasses:
KeyScanOutput, KeyScanStreamingOutput, KeyValueScanStreamingOutput, MapScanOutput, ScoredValueScanOutput, ScoredValueScanStreamingOutput, ValueScanOutput, ValueScanStreamingOutput

public abstract class ScanOutput<K,​V,​T extends ScanCursor>
extends CommandOutput<K,​V,​T>
Cursor handling output.
Author:
Mark Paluch
  • Constructor Details

    • ScanOutput

      public ScanOutput​(RedisCodec<K,​V> codec, T cursor)
  • Method Details

    • 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,​T extends ScanCursor>
      Parameters:
      bytes - The command output, or null.
    • setOutput

      protected abstract void setOutput​(ByteBuffer bytes)