public class FlinkOSSFileSystem extends HadoopFileSystem
FileSystem
interface 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.FileSystem.WriteMode
Modifier and Type | Field and Description |
---|---|
static long |
MULTIPART_UPLOAD_PART_SIZE_MIN |
Constructor and Description |
---|
FlinkOSSFileSystem(org.apache.hadoop.fs.FileSystem fileSystem,
long ossUploadPartSize,
int maxConcurrentUploadsPerStream,
String localTmpDirectory,
OSSAccessor ossAccessor) |
Modifier and Type | Method and Description |
---|---|
RecoverableWriter |
createRecoverableWriter()
Creates a new
RecoverableWriter . |
FileSystemKind |
getKind()
Gets a description of the characteristics of this file system.
|
String |
getLocalTmpDir() |
create, create, delete, exists, getDefaultBlockSize, getFileBlockLocations, getFileStatus, getHadoopFileSystem, getHomeDirectory, getUri, getWorkingDirectory, isDistributedFS, listStatus, mkdirs, open, open, rename, toHadoopPath
create, get, getDefaultFsUri, getLocalFileSystem, getUnguardedFileSystem, initialize, initialize, initOutPathDistFS, initOutPathLocalFS
public static final long MULTIPART_UPLOAD_PART_SIZE_MIN
public FlinkOSSFileSystem(org.apache.hadoop.fs.FileSystem fileSystem, long ossUploadPartSize, int maxConcurrentUploadsPerStream, String localTmpDirectory, OSSAccessor ossAccessor)
public FileSystemKind getKind()
FileSystem
getKind
in class HadoopFileSystem
public RecoverableWriter createRecoverableWriter() throws IOException
FileSystem
RecoverableWriter
. A recoverable writer creates streams that can
persist and recover their intermediate state. Persisting and recovering intermediate state is
a core building block for writing to files that span multiple checkpoints.
The returned object can act as a shared factory to open and recover multiple streams.
This method is optional on file systems and various file system implementations may not
support this method, throwing an UnsupportedOperationException
.
createRecoverableWriter
in class HadoopFileSystem
IOException
- Thrown, if the recoverable writer cannot be instantiated.public String getLocalTmpDir()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.