Class KeyList

java.lang.Object
org.rostore.v2.keys.KeyList

public class KeyList extends Object
A list of keys loaded by the KeyBlockOperations.
  • Constructor Details

    • KeyList

      public KeyList()
  • Method Details

    • addKey

      public void addKey(byte[] key)
      Add a key to the list
      Parameters:
      key - a key to add
    • getKeys

      public List<byte[]> getKeys()
      Provides the list of keys
      Returns:
      list of keys as byte arrays
    • setKeys

      public void setKeys(List<byte[]> keys)
      Sets the list of keys
      Parameters:
      keys - the list of keys
    • isMore

      public boolean isMore()
      Provides a flag if more keys are available in the storage
      Returns:
      true if more keys are available
    • setMore

      public void setMore(boolean more)
      Sets the more flag
      Parameters:
      more - true if more keys are available
    • getSize

      public long getSize()
      Provides the size of all keys
      Returns:
      the size of all keys
    • setSize

      public void setSize(long size)
      Sets the size of all keys
      Parameters:
      size - the size of all keys in the list