public class DirectoryStreamStateHandle extends Object implements StreamStateHandle
SharedStateRegistry to track the life cycle of the directory.StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector| Constructor and Description |
|---|
DirectoryStreamStateHandle(org.apache.flink.core.fs.Path directory) |
| Modifier and Type | Method and Description |
|---|---|
Optional<byte[]> |
asBytesIfInMemory() |
SharedStateRegistryKey |
createStateRegistryKey() |
void |
discardState()
Discards the state referred to and solemnly owned by this handle, to free up resources in the
persistent storage.
|
boolean |
equals(Object o) |
org.apache.flink.core.fs.Path |
getDirectory() |
long |
getStateSize()
This handle usually used to track the life cycle of the directory, therefore a fake size is
provided.
|
PhysicalStateHandleID |
getStreamStateHandleID() |
int |
hashCode() |
static DirectoryStreamStateHandle |
of(org.apache.flink.core.fs.Path directory) |
org.apache.flink.core.fs.FSDataInputStream |
openInputStream()
Returns an
FSDataInputStream that can be used to read back the data that was
previously written to the stream. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcollectSizeStatspublic DirectoryStreamStateHandle(@Nonnull org.apache.flink.core.fs.Path directory)
public org.apache.flink.core.fs.FSDataInputStream openInputStream()
StreamStateHandleFSDataInputStream that can be used to read back the data that was
previously written to the stream.openInputStream in interface StreamStateHandlepublic Optional<byte[]> asBytesIfInMemory()
asBytesIfInMemory in interface StreamStateHandlepublic PhysicalStateHandleID getStreamStateHandleID()
getStreamStateHandleID in interface StreamStateHandlepublic SharedStateRegistryKey createStateRegistryKey()
public org.apache.flink.core.fs.Path getDirectory()
public void discardState()
throws Exception
StateObjectdiscardState in interface StateObjectExceptionpublic long getStateSize()
getStateSize in interface StateObjectpublic static DirectoryStreamStateHandle of(@Nonnull org.apache.flink.core.fs.Path directory)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.