public abstract class AbstractFileStateHandle extends AbstractCloseableHandle implements StateObject
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileStateHandle(org.apache.flink.core.fs.Path filePath)
Creates a new file state for the given file path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
discardState()
Discard the state by deleting the file that stores the state.
|
org.apache.flink.core.fs.Path |
getFilePath()
Gets the path where this handle's state is stored.
|
protected long |
getFileSize()
Returns the file size in bytes.
|
protected org.apache.flink.core.fs.FileSystem |
getFileSystem()
Gets the file system that stores the file state.
|
close, ensureNotClosed, isClosed, registerCloseableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStateSizeprotected AbstractFileStateHandle(org.apache.flink.core.fs.Path filePath)
filePath - The path to the file that stores the state.public org.apache.flink.core.fs.Path getFilePath()
public void discardState()
throws Exception
discardState in interface StateObjectException - Thrown, if the file deletion (not the directory deletion) fails.protected org.apache.flink.core.fs.FileSystem getFileSystem()
throws IOException
IOException - Thrown if the file system cannot be accessed.protected long getFileSize()
throws IOException
IOException - Thrown if the file system cannot be accessed.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.