Package org.apache.flink.fs.osshadoop
Class FlinkOSSFileSystem
- java.lang.Object
-
- org.apache.flink.core.fs.FileSystem
-
- org.apache.flink.runtime.fs.hdfs.HadoopFileSystem
-
- org.apache.flink.fs.osshadoop.FlinkOSSFileSystem
-
public class FlinkOSSFileSystem extends org.apache.flink.runtime.fs.hdfs.HadoopFileSystemImplementation of the FlinkFileSysteminterface for Aliyun OSS. This class implements the common behavior implemented directly by Flink and delegates common calls to an implementation of Hadoop's filesystem abstraction.
-
-
Field Summary
Fields Modifier and Type Field Description static longMULTIPART_UPLOAD_PART_SIZE_MIN
-
Constructor Summary
Constructors Constructor Description FlinkOSSFileSystem(org.apache.hadoop.fs.FileSystem fileSystem, long ossUploadPartSize, int maxConcurrentUploadsPerStream, String localTmpDirectory, OSSAccessor ossAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.core.fs.RecoverableWritercreateRecoverableWriter()org.apache.flink.core.fs.FileSystemKindgetKind()StringgetLocalTmpDir()-
Methods inherited from class org.apache.flink.runtime.fs.hdfs.HadoopFileSystem
create, create, delete, exists, getDefaultBlockSize, getFileBlockLocations, getFileStatus, getHadoopFileSystem, getHomeDirectory, getUri, getWorkingDirectory, isDistributedFS, listStatus, mkdirs, open, open, rename, toHadoopPath
-
-
-
-
Field Detail
-
MULTIPART_UPLOAD_PART_SIZE_MIN
public static final long MULTIPART_UPLOAD_PART_SIZE_MIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FlinkOSSFileSystem
public FlinkOSSFileSystem(org.apache.hadoop.fs.FileSystem fileSystem, long ossUploadPartSize, int maxConcurrentUploadsPerStream, String localTmpDirectory, OSSAccessor ossAccessor)
-
-
Method Detail
-
getKind
public org.apache.flink.core.fs.FileSystemKind getKind()
- Overrides:
getKindin classorg.apache.flink.runtime.fs.hdfs.HadoopFileSystem
-
createRecoverableWriter
public org.apache.flink.core.fs.RecoverableWriter createRecoverableWriter() throws IOException- Overrides:
createRecoverableWriterin classorg.apache.flink.runtime.fs.hdfs.HadoopFileSystem- Throws:
IOException
-
getLocalTmpDir
public String getLocalTmpDir()
-
-