Class KeyEncodingResult

java.lang.Object
com.scaleout.client.caching.KeyEncodingResult

public class KeyEncodingResult extends Object
The KeyEncodingResult returned by an implementation of KeyEncoder.encode(Object)
  • Constructor Details

    • KeyEncodingResult

      public KeyEncodingResult(byte[] keyBytes)
      Creates a KeyEncodingResult with the encoded key
      Parameters:
      keyBytes - the encoded key
    • KeyEncodingResult

      public KeyEncodingResult(byte[] keyBytes, byte[] encodedKeyString)
      Create a KeyEncodingResult with the key bytes and an encoded key string.
      Parameters:
      keyBytes - the encoded key
      encodedKeyString - the key string
  • Method Details

    • encodedKeyString

      public byte[] encodedKeyString()
      Retrieve the encoded key string (if it exists).
      Returns:
      the encoded key string, or null if this key encoding result has no encoded key string
    • keyBytes

      public byte[] keyBytes()
      Retrieve the encoded key bytes.
      Returns:
      the encoded key bytes.