Class MappingEntry
- java.lang.Object
-
- org.apache.flink.runtime.asyncprocessing.ReferenceCounted
-
- org.apache.flink.state.forst.fs.filemapping.MappingEntry
-
public class MappingEntry extends org.apache.flink.runtime.asyncprocessing.ReferenceCountedA file mapping entry that encapsulates source and destination path. Source Path : dest Path = 1 : N.
-
-
Constructor Summary
Constructors Constructor Description MappingEntry(int initReference, org.apache.flink.core.fs.Path sourcePath, FileOwnership fileOwnership, boolean isDirectory)MappingEntry(int initReference, org.apache.flink.runtime.state.StreamStateHandle stateHandle, FileOwnership fileOwnership, boolean isDirectory)MappingEntry(int initReference, MappingEntrySource source, FileOwnership fileOwnership, FileBasedCache cache, boolean isDirectory, boolean writing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendWriting()booleanequals(Object o)FileOwnershipgetFileOwnership()MappingEntrySourcegetSource()org.apache.flink.core.fs.PathgetSourcePath()booleanisWriting()protected voidreferenceCountReachedZero(Object o)voidsetFileOwnership(FileOwnership ownership)voidsetSource(org.apache.flink.runtime.state.StreamStateHandle stateHandle)StringtoString()
-
-
-
Constructor Detail
-
MappingEntry
public MappingEntry(int initReference, org.apache.flink.runtime.state.StreamStateHandle stateHandle, FileOwnership fileOwnership, boolean isDirectory)
-
MappingEntry
public MappingEntry(int initReference, org.apache.flink.core.fs.Path sourcePath, FileOwnership fileOwnership, boolean isDirectory)
-
MappingEntry
public MappingEntry(int initReference, MappingEntrySource source, FileOwnership fileOwnership, FileBasedCache cache, boolean isDirectory, boolean writing)
-
-
Method Detail
-
setFileOwnership
public void setFileOwnership(FileOwnership ownership)
-
setSource
public void setSource(org.apache.flink.runtime.state.StreamStateHandle stateHandle)
-
getSource
public MappingEntrySource getSource()
-
getSourcePath
@Nullable public org.apache.flink.core.fs.Path getSourcePath()
-
getFileOwnership
public FileOwnership getFileOwnership()
-
isWriting
public boolean isWriting()
-
endWriting
public void endWriting()
-
referenceCountReachedZero
protected void referenceCountReachedZero(@Nullable Object o)- Specified by:
referenceCountReachedZeroin classorg.apache.flink.runtime.asyncprocessing.ReferenceCounted
-
-