public class DirectoryStreamStateHandle extends Object implements StreamStateHandle
SharedStateRegistry to track the life cycle of the directory.StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector| 构造器和说明 |
|---|
DirectoryStreamStateHandle(org.apache.flink.core.fs.Path directory) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
collectSizeStatspublic 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 在接口中 StreamStateHandlepublic Optional<byte[]> asBytesIfInMemory()
asBytesIfInMemory 在接口中 StreamStateHandlepublic PhysicalStateHandleID getStreamStateHandleID()
getStreamStateHandleID 在接口中 StreamStateHandlepublic SharedStateRegistryKey createStateRegistryKey()
public org.apache.flink.core.fs.Path getDirectory()
public void discardState()
throws Exception
StateObjectdiscardState 在接口中 StateObjectExceptionpublic long getStateSize()
getStateSize 在接口中 StateObjectpublic static DirectoryStreamStateHandle of(@Nonnull org.apache.flink.core.fs.Path directory)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.