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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKey(byte[] key) Add a key to the listList<byte[]> getKeys()Provides the list of keyslonggetSize()Provides the size of all keysbooleanisMore()Provides a flag if more keys are available in the storagevoidSets the list of keysvoidsetMore(boolean more) Sets the more flagvoidsetSize(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:
trueif more keys are available
-
setMore
public void setMore(boolean more) Sets the more flag- Parameters:
more-trueif 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
-