public interface HadoopIgfs
| Modifier and Type | Method and Description |
|---|---|
Collection<IgfsBlockLocation> |
affinity(IgfsPath path,
long start,
long len)
Command to get affinity for given path, offset and length.
|
HadoopIgfsStreamDelegate |
append(IgfsPath path,
boolean create,
Map<String,String> props)
Open file for output appending data to the end of a file.
|
void |
close(boolean force)
Close connection.
|
IgfsPathSummary |
contentSummary(IgfsPath path)
Gets path summary.
|
HadoopIgfsStreamDelegate |
create(IgfsPath path,
boolean overwrite,
boolean colocate,
int replication,
long blockSize,
Map<String,String> props)
Command to create file and open it for output.
|
Boolean |
delete(IgfsPath path,
boolean recursive)
Command to delete given path.
|
IgfsStatus |
fsStatus()
Performs status request.
|
IgfsHandshakeResponse |
handshake(String logDir)
Perform handshake.
|
IgfsFile |
info(IgfsPath path)
Command to retrieve file info for some IGFS path.
|
Collection<IgfsFile> |
listFiles(IgfsPath path)
Command to get list of files in directory.
|
Collection<IgfsPath> |
listPaths(IgfsPath path)
Command to get directory listing.
|
Boolean |
mkdirs(IgfsPath path,
Map<String,String> props)
Command to create directories.
|
HadoopIgfsStreamDelegate |
open(IgfsPath path)
Command to open file for reading.
|
HadoopIgfsStreamDelegate |
open(IgfsPath path,
int seqReadsBeforePrefetch)
Command to open file for reading.
|
Boolean |
rename(IgfsPath src,
IgfsPath dest)
Command to rename given path.
|
Boolean |
setTimes(IgfsPath path,
long accessTime,
long modificationTime)
Sets last access time and last modification time for a file.
|
IgfsFile |
update(IgfsPath path,
Map<String,String> props)
Command to update file properties.
|
IgfsHandshakeResponse handshake(String logDir) throws IgniteCheckedException, IOException
logDir - Log directory.IgniteCheckedException - If failed.IOExceptionvoid close(boolean force)
force - Force flag.IgfsFile info(IgfsPath path) throws IgniteCheckedException, IOException
path - Path to get file info for.IgniteCheckedException - If failed.IOExceptionIgfsFile update(IgfsPath path, Map<String,String> props) throws IgniteCheckedException, IOException
path - IGFS path to update properties.props - Properties to update.IgniteCheckedException - If failed.IOExceptionBoolean setTimes(IgfsPath path, long accessTime, long modificationTime) throws IgniteCheckedException, IOException
path - Path to update times.accessTime - Last access time to set.modificationTime - Last modification time to set.IgniteCheckedException - If failed.IOExceptionBoolean rename(IgfsPath src, IgfsPath dest) throws IgniteCheckedException, IOException
src - Source path.dest - Destination path.IgniteCheckedException - If failed.IOExceptionBoolean delete(IgfsPath path, boolean recursive) throws IgniteCheckedException, IOException
path - Path to delete.recursive - True if deletion is recursive.IgniteCheckedException - If failed.IOExceptionCollection<IgfsBlockLocation> affinity(IgfsPath path, long start, long len) throws IgniteCheckedException, IOException
path - Path to get affinity for.start - Start position (offset).len - Data length.IgniteCheckedException - If failed.IOExceptionIgfsPathSummary contentSummary(IgfsPath path) throws IgniteCheckedException, IOException
path - Path to get summary for.IgniteCheckedException - If failed.IOExceptionBoolean mkdirs(IgfsPath path, Map<String,String> props) throws IgniteCheckedException, IOException
path - Path to create.IgniteCheckedException - If failed.IOExceptionCollection<IgfsFile> listFiles(IgfsPath path) throws IgniteCheckedException, IOException
path - Path to list.IgniteCheckedException - If failed.IOExceptionCollection<IgfsPath> listPaths(IgfsPath path) throws IgniteCheckedException, IOException
path - Path to list.IgniteCheckedException - If failed.IOExceptionIgfsStatus fsStatus() throws IgniteCheckedException, IOException
IgniteCheckedException - If failed.IOExceptionHadoopIgfsStreamDelegate open(IgfsPath path) throws IgniteCheckedException, IOException
path - File path to open.IgniteCheckedException - If failed.IOExceptionHadoopIgfsStreamDelegate open(IgfsPath path, int seqReadsBeforePrefetch) throws IgniteCheckedException, IOException
path - File path to open.IgniteCheckedException - If failed.IOExceptionHadoopIgfsStreamDelegate create(IgfsPath path, boolean overwrite, boolean colocate, int replication, long blockSize, @Nullable Map<String,String> props) throws IgniteCheckedException, IOException
path - Path to file.overwrite - If true then old file contents will be lost.colocate - If true and called on data node, file will be written on that node.replication - Replication factor.props - File properties for creation.IgniteCheckedException - If failed.IOExceptionHadoopIgfsStreamDelegate append(IgfsPath path, boolean create, @Nullable Map<String,String> props) throws IgniteCheckedException, IOException
path - Path to file.create - If true, file will be created if does not exist.props - File properties.IgniteCheckedException - If failed.IOException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019