Class ScanResult<T>


  • public class ScanResult<T>
    extends java.lang.Object
    ScanResult compatibility stub for Valkey GLIDE wrapper.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScanResult​(byte[] cursor, java.util.List<T> result)
      Creates a ScanResult with a byte array cursor.
      ScanResult​(java.lang.String cursor, java.util.List<T> result)  
    • Constructor Detail

      • ScanResult

        public ScanResult​(java.lang.String cursor,
                          java.util.List<T> result)
      • ScanResult

        public ScanResult​(byte[] cursor,
                          java.util.List<T> result)
        Creates a ScanResult with a byte array cursor.

        This constructor provides compatibility with original Jedis which supports binary cursors.

        Parameters:
        cursor - the cursor as a byte array
        result - the list of scan results
    • Method Detail

      • getCursor

        public java.lang.String getCursor()
      • getCursorAsBytes

        public byte[] getCursorAsBytes()
        Returns the cursor as a byte array.

        This method provides compatibility with original Jedis which supports binary cursor operations.

        Returns:
        the cursor as bytes
      • getResult

        public java.util.List<T> getResult()
      • isCompleteIteration

        public boolean isCompleteIteration()
        Checks if the scan iteration is complete.

        A scan iteration is complete when the cursor is "0", indicating that all keys have been scanned and the iteration should stop.

        Returns:
        true if the iteration is complete (cursor is "0"), false otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object