public class PersistentStoreImpl extends Object implements PersistentStore
PersistentStore.PersistenceType
Constructor and Description |
---|
PersistentStoreImpl(SolrClientFactoryImpl clientFactory) |
Modifier and Type | Method and Description |
---|---|
void |
add(String type,
Collection<Map<String,Object>> items)
Adds a collection of items of specified type.
|
void |
add(String type,
Map<String,Object> properties)
Adds item of specified type with the specified properties.
|
int |
delete(String type,
String cql)
Delete items matching the ECQL query criteria.
|
List<Map<String,Object>> |
get(String type)
Get all of the items of the specified type.
|
List<Map<String,Object>> |
get(String type,
String cql)
Get items matching the ECQL query criteria.
|
public PersistentStoreImpl(SolrClientFactoryImpl clientFactory)
public void add(String type, Collection<Map<String,Object>> items) throws PersistenceException
PersistentStore
add
in interface PersistentStore
type
- A non-empty string identifying the type of items being added.items
- A list of map properties making up the items. Property keys must have a suffix
that identifies the type of value for the entry. The PersistentItem class should be used
for creating these maps.PersistenceException
- If the type is empty or there was an issue persisting the item.public void add(String type, Map<String,Object> properties) throws PersistenceException
PersistentStore
add
in interface PersistentStore
type
- A non-empty string identifying the type of item being added.properties
- A map of properties making up the item. Property keys must have a suffix that
identifies the type of value for the entry. The PersistentItem class should be used for
creating this map.PersistenceException
- If the type is empty or there was an issue persisting the item.public List<Map<String,Object>> get(String type) throws PersistenceException
PersistentStore
get
in interface PersistentStore
PersistenceException
public List<Map<String,Object>> get(String type, String cql) throws PersistenceException
PersistentStore
get
in interface PersistentStore
PersistenceException
public int delete(String type, String cql) throws PersistenceException
PersistentStore
delete
in interface PersistentStore
PersistenceException
This work is licensed under a Creative Commons Attribution 4.0 International License.