Package com.rpl.agentorama.store
Interface PStateStore
- All Superinterfaces:
Store
- All Known Subinterfaces:
DocumentStore<K>,KeyValueStore<K,V>
Direct access to Rama's built-in PState storage.
PStates are stores defined as any combination of data structures of any size.
They are distributed, durable, and replicated, and read and written to with a flexible "path" API.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<V> List<V> select(com.rpl.rama.Path path) Selects data using a path expression.<V> List<V> Selects data using a path expression with a partitioning key.<V> VselectOne(com.rpl.rama.Path path) Selects a single value using a path expression.<V> VSelects a single value using a path expression with a partitioning key.voidTransforms data using a path expression with a partitioning key.
-
Method Details
-
select
Selects data using a path expression.- Type Parameters:
V- the type of data being selected- Parameters:
path- the path expression for data selection, e.gPath.key("a").mapVals()- Returns:
- list of selected values
-
select
Selects data using a path expression with a partitioning key.- Type Parameters:
V- the type of data being selected- Parameters:
partitioningKey- the partitioning key for the operationpath- the path expression for data selection, e.gPath.key("a").mapVals()- Returns:
- list of selected values
-
selectOne
<V> V selectOne(com.rpl.rama.Path path) Selects a single value using a path expression.- Type Parameters:
V- the type of data being selected- Parameters:
path- the path expression for data selection, e.gPath.key("a", "b")- Returns:
- the selected value, or null if not found
-
selectOne
Selects a single value using a path expression with a partitioning key.- Type Parameters:
V- the type of data being selected- Parameters:
partitioningKey- the partitioning key for the operationpath- the path expression for data selection, e.gPath.key("a", "b")- Returns:
- the selected value, or null if not found
-
transform
Transforms data using a path expression with a partitioning key.- Parameters:
partitioningKey- the partitioning key for the operationpath- the path expression for data transformation, e.gPath.key("a", "b").termVal(10)
-