Package org.rostore.v2.keys
Class KeyList
java.lang.Object
org.rostore.v2.keys.KeyList
A list of keys loaded by the
KeyBlockOperations
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addKey
(byte[] key) Add a key to the listList
<byte[]> getKeys()
Provides the list of keyslong
getSize()
Provides the size of all keysboolean
isMore()
Provides a flag if more keys are available in the storagevoid
Sets the list of keysvoid
setMore
(boolean more) Sets the more flagvoid
setSize
(long size) Sets the size of all keys
-
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
Provides the list of keys- Returns:
- list of keys as byte arrays
-
setKeys
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
-