public final class S3FileSystem
extends org.apache.flink.core.fs.FileSystem
FileSystem implementation which is backed by Amazon's Simple Storage Service (S3). The
implementation uses the REST API of Amazon S3 to facilitate the communication and read/write the data.| Modifier and Type | Field and Description |
|---|---|
static String |
S3_ACCESS_KEY_KEY
The configuration key to access the S3 access key.
|
static String |
S3_HOST_KEY
The configuration key to access the S3 host.
|
static String |
S3_PORT_KEY
The configuration key to access the S3 port.
|
static String |
S3_RRS_KEY
The configuration key to access the S3 Reduced Redundancy Storage setting.
|
static String |
S3_SCHEME
The scheme which is used by this file system.
|
static String |
S3_SECRET_KEY_KEY
The configuration key to access the S3 secret key.
|
| Constructor and Description |
|---|
S3FileSystem() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.core.fs.FSDataOutputStream |
create(org.apache.flink.core.fs.Path f,
boolean overwrite) |
org.apache.flink.core.fs.FSDataOutputStream |
create(org.apache.flink.core.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize) |
boolean |
delete(org.apache.flink.core.fs.Path f,
boolean recursive) |
org.apache.flink.core.fs.BlockLocation[] |
getFileBlockLocations(org.apache.flink.core.fs.FileStatus file,
long start,
long len) |
org.apache.flink.core.fs.FileStatus |
getFileStatus(org.apache.flink.core.fs.Path f) |
org.apache.flink.core.fs.Path |
getHomeDirectory() |
URI |
getUri() |
org.apache.flink.core.fs.Path |
getWorkingDirectory() |
void |
initialize(URI name) |
boolean |
initOutPathDistFS(org.apache.flink.core.fs.Path outPath,
org.apache.flink.core.fs.FileSystem.WriteMode writeMode,
boolean createDirectory) |
boolean |
isDistributedFS() |
org.apache.flink.core.fs.FileStatus[] |
listStatus(org.apache.flink.core.fs.Path f) |
boolean |
mkdirs(org.apache.flink.core.fs.Path f) |
org.apache.flink.core.fs.FSDataInputStream |
open(org.apache.flink.core.fs.Path f) |
org.apache.flink.core.fs.FSDataInputStream |
open(org.apache.flink.core.fs.Path f,
int bufferSize) |
boolean |
rename(org.apache.flink.core.fs.Path src,
org.apache.flink.core.fs.Path dst) |
public static final String S3_HOST_KEY
public static final String S3_PORT_KEY
public static final String S3_RRS_KEY
public static final String S3_ACCESS_KEY_KEY
public static final String S3_SECRET_KEY_KEY
public static final String S3_SCHEME
public org.apache.flink.core.fs.Path getWorkingDirectory()
getWorkingDirectory in class org.apache.flink.core.fs.FileSystempublic org.apache.flink.core.fs.Path getHomeDirectory()
getHomeDirectory in class org.apache.flink.core.fs.FileSystempublic URI getUri()
getUri in class org.apache.flink.core.fs.FileSystempublic void initialize(URI name) throws IOException
initialize in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.FileStatus getFileStatus(org.apache.flink.core.fs.Path f)
throws IOException
getFileStatus in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.BlockLocation[] getFileBlockLocations(org.apache.flink.core.fs.FileStatus file,
long start,
long len)
throws IOException
getFileBlockLocations in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.FSDataInputStream open(org.apache.flink.core.fs.Path f,
int bufferSize)
throws IOException
open in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.FSDataInputStream open(org.apache.flink.core.fs.Path f)
throws IOException
open in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.FileStatus[] listStatus(org.apache.flink.core.fs.Path f)
throws IOException
listStatus in class org.apache.flink.core.fs.FileSystemIOExceptionpublic boolean delete(org.apache.flink.core.fs.Path f,
boolean recursive)
throws IOException
delete in class org.apache.flink.core.fs.FileSystemIOExceptionpublic boolean mkdirs(org.apache.flink.core.fs.Path f)
throws IOException
mkdirs in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.FSDataOutputStream create(org.apache.flink.core.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize)
throws IOException
create in class org.apache.flink.core.fs.FileSystemIOExceptionpublic org.apache.flink.core.fs.FSDataOutputStream create(org.apache.flink.core.fs.Path f,
boolean overwrite)
throws IOException
create in class org.apache.flink.core.fs.FileSystemIOExceptionpublic boolean rename(org.apache.flink.core.fs.Path src,
org.apache.flink.core.fs.Path dst)
throws IOException
rename in class org.apache.flink.core.fs.FileSystemIOExceptionpublic boolean initOutPathDistFS(org.apache.flink.core.fs.Path outPath,
org.apache.flink.core.fs.FileSystem.WriteMode writeMode,
boolean createDirectory)
throws IOException
initOutPathDistFS in class org.apache.flink.core.fs.FileSystemIOExceptionpublic boolean isDistributedFS()
isDistributedFS in class org.apache.flink.core.fs.FileSystemCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.