StateStoreBaseImpl, StateStoreDriver, StateStoreFileBaseImpl, StateStoreFileImpl, StateStoreFileSystemImpl, StateStoreMySQLImpl, StateStoreSerializableImpl, StateStoreZooKeeperImpl@Private
@Evolving
public interface StateStoreRecordOperations
| Modifier and Type | Method | Description |
|---|---|---|
<T extends BaseRecord> |
get(java.lang.Class<T> clazz) |
Get all records of the requested record class from the data store.
|
<T extends BaseRecord> |
get(java.lang.Class<T> clazz,
Query<T> query) |
Get a single record from the store that matches the query.
|
<T extends BaseRecord> |
getMultiple(java.lang.Class<T> clazz,
Query<T> query) |
Get multiple records from the store that match a query.
|
<T extends BaseRecord> |
put(T record,
boolean allowUpdate,
boolean errorIfExists) |
Creates a single record.
|
<T extends BaseRecord> |
putAll(java.util.List<T> records,
boolean allowUpdate,
boolean errorIfExists) |
Creates multiple records.
|
<T extends BaseRecord> |
remove(java.lang.Class<T> clazz,
Query<T> query) |
Remove multiple records of a specific class that match a query.
|
<T extends BaseRecord> |
remove(T record) |
Remove a single record.
|
<T extends BaseRecord> |
removeAll(java.lang.Class<T> clazz) |
Remove all records of this class from the store.
|
<T extends BaseRecord> QueryResult<T> get(java.lang.Class<T> clazz) throws java.io.IOException
T - Record class of the records.clazz - Class of record to fetch.java.io.IOException - Throws exception if unable to query the data store.<T extends BaseRecord> T get(java.lang.Class<T> clazz, Query<T> query) throws java.io.IOException
T - Record class of the records.clazz - Class of record to fetch.query - Query to filter results.java.io.IOException - If multiple records match or if the data store cannot
be queried.<T extends BaseRecord> java.util.List<T> getMultiple(java.lang.Class<T> clazz, Query<T> query) throws java.io.IOException
T - Record class of the records.clazz - Class of record to fetch.query - Query to filter results.java.io.IOException - Throws exception if unable to query the data store.<T extends BaseRecord> boolean put(T record, boolean allowUpdate, boolean errorIfExists) throws java.io.IOException
T - Record class of the records.record - The record to insert or update.allowUpdate - True if update of exiting record is allowed.errorIfExists - True if an error should be returned when inserting
an existing record. Only used if allowUpdate = false.java.io.IOException - Throws exception if unable to query the data store.<T extends BaseRecord> StateStoreOperationResult putAll(java.util.List<T> records, boolean allowUpdate, boolean errorIfExists) throws java.io.IOException
T - Record class of the records.records - List of data records to update or create. All records must
be of class clazz.allowUpdate - True if update of exiting record is allowed.errorIfExists - True if an error should be returned when inserting
an existing record. Only used if allowUpdate = false.java.io.IOException - Throws exception if unable to query the data store.<T extends BaseRecord> boolean remove(T record) throws java.io.IOException
T - Record class of the records.record - Record to be removed.java.io.IOException - Throws exception if unable to query the data store.<T extends BaseRecord> boolean removeAll(java.lang.Class<T> clazz) throws java.io.IOException
T - Record class of the records.clazz - Class of records to remove.java.io.IOException - Throws exception if unable to query the data store.<T extends BaseRecord> int remove(java.lang.Class<T> clazz, Query<T> query) throws java.io.IOException
T - Record class of the records.clazz - The class to match the records with.query - Query to filter what to remove.java.io.IOException - Throws exception if unable to query the data store.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.