-
Method Summary
void
boolean
Check if a object with given id exists in keyspace.
long
Count number of objects within keyspace.
long
Count all matching objects within keyspace.
Delete and return the object with given type and id.
<T> T
Delete and return the object with given type and id.
void
Remove all objects of given type.
default boolean
Determine whether result of given
KeyValueQuery
within keyspace contains at least one element.
Find all matching objects within keyspace.
Get the object with given id from keyspace.
<T> T
Get the object with given id from keyspace.
Get all elements for given keyspace.
Get all elements for given keyspace.
Add object with given id to keyspace.
-
Method Details
-
put
Add object with given id to keyspace.
- Parameters:
id
- must not be null.
keyspace
- must not be null.
- Returns:
- the item previously associated with the id.
-
contains
Check if a object with given id exists in keyspace.
- Parameters:
id
- must not be null.
keyspace
- must not be null.
- Returns:
- true if item of type with id exists.
-
get
Get the object with given id from keyspace.
- Parameters:
id
- must not be null.
keyspace
- must not be null.
- Returns:
- null in case no matching item exists.
-
get
Get the object with given id from keyspace.
- Parameters:
id
- must not be null.
keyspace
- must not be null.
type
- must not be null.
- Returns:
- null in case no matching item exists.
- Since:
- 1.1
-
delete
Delete and return the object with given type and id.
- Parameters:
id
- must not be null.
keyspace
- must not be null.
- Returns:
- null if object could not be found
-
delete
Delete and return the object with given type and id.
- Parameters:
id
- must not be null.
keyspace
- must not be null.
type
- must not be null.
- Returns:
- null if object could not be found
- Since:
- 1.1
-
getAllOf
Get all elements for given keyspace.
- Parameters:
keyspace
- must not be null.
- Returns:
- empty
Collection
if nothing found.
-
getAllOf
Get all elements for given keyspace.
- Parameters:
keyspace
- must not be null.
type
- must not be null.
- Returns:
- empty
Collection
if nothing found.
- Since:
- 2.5
-
entries
- Parameters:
keyspace
- must not be null.
- Returns:
-
entries
- Parameters:
keyspace
- must not be null.
type
- must not be null.
- Returns:
- Since:
- 2.5
-
deleteAllOf
void deleteAllOf(String keyspace)
Remove all objects of given type.
- Parameters:
keyspace
- must not be null.
-
clear
void clear()
Removes all objects.
-
find
Find all matching objects within keyspace.
- Parameters:
query
- must not be null.
keyspace
- must not be null.
- Returns:
- empty
Collection
if no match found.
-
find
- Parameters:
query
- must not be null.
keyspace
- must not be null.
type
- must not be null.
- Returns:
- empty
Collection
if no match found.
- Since:
- 1.1
-
count
Count number of objects within keyspace.
- Parameters:
keyspace
- must not be null.
- Returns:
-
count
Count all matching objects within keyspace.
- Parameters:
query
- must not be null.
keyspace
- must not be null.
- Returns:
-
exists
Determine whether result of given
KeyValueQuery
within keyspace contains at least one element.
- Parameters:
query
- must not be null.
keyspace
- must not be null.
- Returns:
- Since:
- 2.7