StateStoreRecordOperationspublic class StateStoreFileImpl extends StateStoreFileBaseImpl
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
FEDERATION_STORE_FILE_DIRECTORY |
Configuration keys.
|
COLON_MARK, SLASH_MARK| Constructor | Description |
|---|---|
StateStoreFileImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the State Store driver connection.
|
protected boolean |
exists(java.lang.String path) |
Check if a path exists.
|
protected java.util.List<java.lang.String> |
getChildren(java.lang.String path) |
Get the children for a path.
|
protected int |
getConcurrentFilesAccessNumThreads() |
|
protected <T extends BaseRecord> |
getReader(java.lang.String filename) |
Get the reader of a record for the file system.
|
protected java.lang.String |
getRootDir() |
Get root directory.
|
<T extends BaseRecord> |
getWriter(java.lang.String filename) |
Get the writer of a record for the file system.
|
protected boolean |
mkdir(java.lang.String path) |
Make a directory.
|
protected boolean |
remove(java.lang.String path) |
Remove a file.
|
protected boolean |
rename(java.lang.String src,
java.lang.String dst) |
Rename a file.
|
get, initDriver, initRecordStorage, isDriverReady, isOldTempRecord, putAll, remove, removeAll, setInitializedgetOriginalPrimaryKey, getPrimaryKey, init, newRecord, serialize, serializeStringget, getMultiple, put, removegetConf, getIdentifier, getMetrics, getTime, verifyDriverReadypublic static final java.lang.String FEDERATION_STORE_FILE_DIRECTORY
protected boolean exists(java.lang.String path)
StateStoreFileBaseImplexists in class StateStoreFileBaseImplpath - Path to check.protected boolean mkdir(java.lang.String path)
StateStoreFileBaseImplmkdir in class StateStoreFileBaseImplpath - Path of the directory to create.protected boolean rename(java.lang.String src,
java.lang.String dst)
StateStoreFileBaseImplrename in class StateStoreFileBaseImplsrc - Source name.dst - Destination name.protected boolean remove(java.lang.String path)
StateStoreFileBaseImplremove in class StateStoreFileBaseImplpath - Path for the file to removeprotected java.lang.String getRootDir()
StateStoreFileBaseImplgetRootDir in class StateStoreFileBaseImplprotected int getConcurrentFilesAccessNumThreads()
getConcurrentFilesAccessNumThreads in class StateStoreFileBaseImplprotected <T extends BaseRecord> java.io.BufferedReader getReader(java.lang.String filename)
StateStoreFileBaseImplgetReader in class StateStoreFileBaseImplT - Type of the state store record.filename - Path of the record to read.@VisibleForTesting public <T extends BaseRecord> java.io.BufferedWriter getWriter(java.lang.String filename)
StateStoreFileBaseImplgetWriter in class StateStoreFileBaseImplT - Type of the state store record.filename - Path of the record to write.public void close()
throws java.lang.Exception
StateStoreDriverclose in class StateStoreFileBaseImpljava.lang.Exception - if something goes wrong while closing the state store driver connection.protected java.util.List<java.lang.String> getChildren(java.lang.String path)
StateStoreFileBaseImplgetChildren in class StateStoreFileBaseImplpath - Path to check.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.