Class MappingEntrySource
- java.lang.Object
-
- org.apache.flink.state.forst.fs.filemapping.MappingEntrySource
-
- Direct Known Subclasses:
FileBackedMappingEntrySource,HandleBackedMappingEntrySource
public abstract class MappingEntrySource extends Object
Indicates the source file of theMappingEntry. It may be backed either by a file or aStreamStateHandle.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleancacheable()abstract voiddelete(boolean recursive)abstract org.apache.flink.core.fs.PathgetFilePath()abstract longgetSize()abstract org.apache.flink.core.fs.FSDataInputStreamopenInputStream()abstract org.apache.flink.core.fs.FSDataInputStreamopenInputStream(int bufferSize)abstract org.apache.flink.runtime.state.StreamStateHandletoStateHandle()
-
-
-
Method Detail
-
delete
public abstract void delete(boolean recursive) throws IOException- Throws:
IOException
-
getFilePath
@Nullable public abstract org.apache.flink.core.fs.Path getFilePath()
-
getSize
public abstract long getSize() throws IOException- Throws:
IOException
-
openInputStream
public abstract org.apache.flink.core.fs.FSDataInputStream openInputStream() throws IOException- Throws:
IOException
-
openInputStream
public abstract org.apache.flink.core.fs.FSDataInputStream openInputStream(int bufferSize) throws IOException- Throws:
IOException
-
cacheable
public abstract boolean cacheable()
-
toStateHandle
public abstract org.apache.flink.runtime.state.StreamStateHandle toStateHandle() throws IOException- Throws:
IOException
-
-