public final class MapRFileSystem
extends org.apache.flink.core.fs.FileSystem
FileSystem base class for the MapR
file system. The class contains MapR specific code to initialize the
connection to the file system. Apart from that, we code mainly reuses the
existing HDFS wrapper code.| Constructor and Description |
|---|
MapRFileSystem()
Creates a new MapRFileSystem object to access the MapR file system.
|
| 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) |
long |
getDefaultBlockSize() |
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 path) |
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 MapRFileSystem()
throws IOException
IOException - throw if the required MapR classes cannot be foundpublic 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 path) 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.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 delete(org.apache.flink.core.fs.Path f,
boolean recursive)
throws IOException
delete 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 mkdirs(org.apache.flink.core.fs.Path f)
throws IOException
mkdirs 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 long getDefaultBlockSize()
getDefaultBlockSize in class org.apache.flink.core.fs.FileSystempublic boolean isDistributedFS()
isDistributedFS in class org.apache.flink.core.fs.FileSystemCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.