StateStoreRecordOperationsStateStoreSerializableImpl@Public @Evolving public abstract class StateStoreBaseImpl extends StateStoreDriver
Drivers may optionally override additional routines for performance optimization, such as custom get/put/remove queries, depending on the capabilities of the data store.
| Constructor | Description |
|---|---|
StateStoreBaseImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
<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> |
remove(T record) |
Remove a single record.
|
close, getConf, getIdentifier, getMetrics, getTime, init, initDriver, initRecordStorage, isDriverReady, verifyDriverReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, putAll, remove, removeAllpublic <T extends BaseRecord> T get(java.lang.Class<T> clazz, Query<T> query) throws java.io.IOException
StateStoreRecordOperationsT - 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.public <T extends BaseRecord> java.util.List<T> getMultiple(java.lang.Class<T> clazz, Query<T> query) throws java.io.IOException
StateStoreRecordOperationsT - 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.public <T extends BaseRecord> boolean put(T record, boolean allowUpdate, boolean errorIfExists) throws java.io.IOException
StateStoreRecordOperationsT - 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.public <T extends BaseRecord> boolean remove(T record) throws java.io.IOException
StateStoreRecordOperationsT - Record class of the records.record - Record to be removed.java.io.IOException - Throws exception if unable to query the data store.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.