| Package | Description |
|---|---|
| com.aliyun.odps.volume |
| Modifier and Type | Method and Description |
|---|---|
Path |
Path.getParent()
Returns the parent of a path or null if at root.
|
Path |
FileStatus.getPath() |
Path |
Path.suffix(String suffix)
Adds a suffix to the final name in the path.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PathFilter.accept(Path path)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
abstract FSDataOutputStream |
FileSystem.append(Path f)
Append to an existing file (optional operation).
|
abstract FSDataOutputStream |
FileSystem.append(Path f,
int bufferSize)
Append to an existing file (optional operation).
|
FSDataOutputStream |
FileSystem.create(Path f)
Create an FSDataOutputStream at the indicated Path.
|
abstract FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite)
Create an FSDataOutputStream at the indicated Path.
|
abstract FSDataOutputStream |
FileSystem.create(Path f,
boolean overwrite,
int bufferSize)
Create an FSDataOutputStream at the indicated Path.
|
boolean |
FileSystem.createNewFile(Path f)
Creates the given Path as a brand-new zero-length file.
|
abstract boolean |
FileSystem.delete(Path f)
Delete a file.
|
boolean |
FileSystem.delete(Path f,
boolean recursive)
Non-recursive delete not supported, just for compatible with hadoop.
|
boolean |
FileSystem.exists(Path f)
Check if exists.
|
abstract FileStatus |
FileSystem.getFileStatus(Path f)
Return a file status object that represents the path.
|
boolean |
FileSystem.isDirectory(Path f)
True iff the named path is a directory.
|
boolean |
FileSystem.isFile(Path f)
True iff the named path is a regular file.
|
abstract FileStatus[] |
FileSystem.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
FileStatus[] |
FileSystem.listStatus(Path[] files)
Filter files/directories in the given list of paths using default
path filter.
|
FileStatus[] |
FileSystem.listStatus(Path[] files,
PathFilter filter)
Filter files/directories in the given list of paths using user-supplied
path filter.
|
FileStatus[] |
FileSystem.listStatus(Path f,
PathFilter filter)
Filter files/directories in the given path using the user-supplied path
filter.
|
abstract boolean |
FileSystem.mkdirs(Path f)
Make the given file and all non-existent parents into
directories.
|
abstract FSDataInputStream |
FileSystem.open(Path f)
Opens an FSDataInputStream at the indicated Path.
|
abstract FSDataInputStream |
FileSystem.open(Path f,
int bufferSize)
Opens an FSDataInputStream at the indicated Path.
|
abstract boolean |
FileSystem.rename(Path src,
Path dst)
Renames Path src to Path dst.
|
void |
FileStatus.setPath(Path p) |
| Constructor and Description |
|---|
FileStatus(long length,
boolean isdir,
long modification_time,
Path path) |
Path(Path parent,
Path child)
Resolve a child path against a parent path.
|
Path(Path parent,
String child)
Resolve a child path against a parent path.
|
Path(String parent,
Path child)
Resolve a child path against a parent path.
|
Copyright © 2021 Alibaba Cloud Computing. All rights reserved.