StateStoreRecordOperationsStateStoreFileBaseImpl, StateStoreMySQLImpl, StateStoreZooKeeperImpl@Public @Evolving public abstract class StateStoreSerializableImpl extends StateStoreBaseImpl
| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
COLON_MARK |
Mark for colon in path names.
|
protected static java.lang.String |
SLASH_MARK |
Mark for slashes in path names.
|
| Constructor | Description |
|---|---|
StateStoreSerializableImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static java.lang.String |
getOriginalPrimaryKey(java.lang.String stateStoreRecordKey) |
Get the original primary key for the given state store record key.
|
protected static java.lang.String |
getPrimaryKey(BaseRecord record) |
Get the primary key for a record.
|
boolean |
init(org.apache.hadoop.conf.Configuration config,
java.lang.String id,
java.util.Collection<java.lang.Class<? extends BaseRecord>> records,
StateStoreMetrics metrics) |
Initialize the state store connection.
|
protected <T extends BaseRecord> |
newRecord(java.lang.String data,
java.lang.Class<T> clazz,
boolean includeDates) |
Creates a record from an input data string.
|
protected <T extends BaseRecord> |
serialize(T record) |
Serialize a record using the serializer.
|
protected <T extends BaseRecord> |
serializeString(T record) |
Serialize a record using the serializer.
|
get, getMultiple, put, removeclose, getConf, getIdentifier, getMetrics, getTime, initDriver, initRecordStorage, isDriverReady, verifyDriverReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, putAll, remove, removeAllprotected static final java.lang.String SLASH_MARK
protected static final java.lang.String COLON_MARK
public boolean init(org.apache.hadoop.conf.Configuration config,
java.lang.String id,
java.util.Collection<java.lang.Class<? extends BaseRecord>> records,
StateStoreMetrics metrics)
StateStoreDriverinit in class StateStoreDriverconfig - Configuration for the driver.id - Identifier for the driver.records - Records that are supported.metrics - State store metrics.protected <T extends BaseRecord> byte[] serialize(T record)
T - Type of the state store record.record - Record to serialize.protected <T extends BaseRecord> java.lang.String serializeString(T record)
T - Type of the state store record.record - Record to serialize.protected <T extends BaseRecord> T newRecord(java.lang.String data, java.lang.Class<T> clazz, boolean includeDates) throws java.io.IOException
T - Type of the state store record.data - Serialized text of the record.clazz - Record class.includeDates - If dateModified and dateCreated are serialized.java.io.IOException - If the record deserialization fails.protected static java.lang.String getPrimaryKey(BaseRecord record)
record - Record to get the primary key for.protected static java.lang.String getOriginalPrimaryKey(java.lang.String stateStoreRecordKey)
stateStoreRecordKey - The record primary key stored by the state store implementations.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.