public class HadoopIgfsSecondaryFileSystemDelegateImpl extends Object implements HadoopIgfsSecondaryFileSystemDelegate
| Constructor and Description |
|---|
HadoopIgfsSecondaryFileSystemDelegateImpl(IgniteHadoopIgfsSecondaryFileSystem proxy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<IgfsBlockLocation> |
affinity(IgfsPath path,
long start,
long len,
long maxLen) |
OutputStream |
append(IgfsPath path,
int bufSize,
boolean create,
Map<String,String> props) |
static IgfsException |
cast(String msg,
IOException e)
Cast IO exception to IGFS exception.
|
OutputStream |
create(IgfsPath path,
boolean overwrite) |
OutputStream |
create(IgfsPath path,
int bufSize,
boolean overwrite,
int replication,
long blockSize,
Map<String,String> props) |
boolean |
delete(IgfsPath path,
boolean recursive) |
boolean |
exists(IgfsPath path) |
IgfsFile |
info(IgfsPath path) |
Collection<IgfsFile> |
listFiles(IgfsPath path) |
Collection<IgfsPath> |
listPaths(IgfsPath path) |
void |
mkdirs(IgfsPath path) |
void |
mkdirs(IgfsPath path,
Map<String,String> props) |
IgfsSecondaryFileSystemPositionedReadable |
open(IgfsPath path,
int bufSize) |
void |
rename(IgfsPath src,
IgfsPath dest) |
void |
setTimes(IgfsPath path,
long modificationTime,
long accessTime) |
void |
start() |
void |
stop() |
String |
toString() |
IgfsFile |
update(IgfsPath path,
Map<String,String> props) |
long |
usedSpaceSize() |
public HadoopIgfsSecondaryFileSystemDelegateImpl(IgniteHadoopIgfsSecondaryFileSystem proxy)
proxy - Proxy.public boolean exists(IgfsPath path)
exists in interface IgfsSecondaryFileSystem@Nullable public IgfsFile update(IgfsPath path, Map<String,String> props)
update in interface IgfsSecondaryFileSystempublic void rename(IgfsPath src, IgfsPath dest)
rename in interface IgfsSecondaryFileSystempublic boolean delete(IgfsPath path, boolean recursive)
delete in interface IgfsSecondaryFileSystempublic void mkdirs(IgfsPath path)
mkdirs in interface IgfsSecondaryFileSystempublic void mkdirs(IgfsPath path, @Nullable Map<String,String> props)
mkdirs in interface IgfsSecondaryFileSystempublic Collection<IgfsPath> listPaths(IgfsPath path)
listPaths in interface IgfsSecondaryFileSystempublic Collection<IgfsFile> listFiles(IgfsPath path)
listFiles in interface IgfsSecondaryFileSystempublic IgfsSecondaryFileSystemPositionedReadable open(IgfsPath path, int bufSize)
open in interface IgfsSecondaryFileSystempublic OutputStream create(IgfsPath path, boolean overwrite)
create in interface IgfsSecondaryFileSystempublic OutputStream create(IgfsPath path, int bufSize, boolean overwrite, int replication, long blockSize, @Nullable Map<String,String> props)
create in interface IgfsSecondaryFileSystempublic OutputStream append(IgfsPath path, int bufSize, boolean create, @Nullable Map<String,String> props)
append in interface IgfsSecondaryFileSystempublic IgfsFile info(IgfsPath path)
info in interface IgfsSecondaryFileSystempublic long usedSpaceSize()
usedSpaceSize in interface IgfsSecondaryFileSystempublic void setTimes(IgfsPath path, long modificationTime, long accessTime) throws IgniteException
setTimes in interface IgfsSecondaryFileSystemIgniteExceptionpublic Collection<IgfsBlockLocation> affinity(IgfsPath path, long start, long len, long maxLen) throws IgniteException
affinity in interface IgfsSecondaryFileSystemIgniteExceptionpublic void start()
start in interface LifecycleAwarepublic void stop()
stop in interface LifecycleAwarepublic static IgfsException cast(String msg, IOException e)
msg - Error message.e - IO exception.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019