Class ScanResult<T>

java.lang.Object
redis.clients.jedis.resps.ScanResult<T>

public class ScanResult<T> extends Object
  • Field Details

    • cursor

      private byte[] cursor
    • results

      private List<T> results
  • Constructor Details

    • ScanResult

      public ScanResult(String cursor, List<T> results)
    • ScanResult

      public ScanResult(byte[] cursor, List<T> results)
  • Method Details

    • getCursor

      public String getCursor()
      Returns the new value of the cursor
      Returns:
      the new cursor value. ScanParams.SCAN_POINTER_START when a complete iteration has finished
    • isCompleteIteration

      public boolean isCompleteIteration()
      Is the iteration complete. I.e. was the complete dataset scanned.
      Returns:
      true if the iteration is complete
    • getCursorAsBytes

      public byte[] getCursorAsBytes()
    • getResult

      public List<T> getResult()
      The scan results from the current call.
      Returns:
      the scan results