| 限定符和类型 | 方法和说明 |
|---|---|
Path |
CoreOptions.path() |
static Path |
CoreOptions.path(Map<String,String> options) |
static Path |
CoreOptions.path(Options options) |
| 限定符和类型 | 方法和说明 |
|---|---|
static CatalogContext |
CatalogContext.create(Path warehouse) |
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
ColumnarRowIterator.filePath() |
| 构造器和说明 |
|---|
ColumnarRowIterator(Path filePath,
ColumnarRow row,
Runnable recycler) |
| 构造器和说明 |
|---|
FileIndexPredicate(Path path,
FileIO fileIO,
RowType fileRowType) |
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
FormatReaderContext.filePath() |
Path |
FormatReaderFactory.Context.filePath() |
| 限定符和类型 | 方法和说明 |
|---|---|
SimpleColStats[] |
SimpleStatsExtractor.extract(FileIO fileIO,
Path path) |
Pair<SimpleColStats[],SimpleStatsExtractor.FileInfo> |
SimpleStatsExtractor.extractWithFileInfo(FileIO fileIO,
Path path) |
| 构造器和说明 |
|---|
FormatReaderContext(FileIO fileIO,
Path file,
long fileSize) |
OrcFormatReaderContext(FileIO fileIO,
Path filePath,
long fileSize,
int poolSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
Path.createTempPath()
Create a temporary path (to be used as a copy) for this path.
|
Path |
Path.getParent()
Returns the parent of a path or null if at root.
|
Path |
FileStatus.getPath()
Returns the corresponding Path to the FileStatus.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static FileIOLoader |
FileIOUtils.checkAccess(FileIOLoader fileIO,
Path path,
CatalogContext config) |
default void |
FileIO.checkOrMkdirs(Path path) |
int |
Path.compareTo(Path that) |
default void |
FileIO.copyFile(Path sourcePath,
Path targetPath,
boolean overwrite)
Copy content of one file into another.
|
default void |
FileIO.copyFiles(Path sourceDirectory,
Path targetDirectory,
boolean overwrite)
Copy all files in sourceDirectory to directory targetDirectory.
|
protected abstract FileIO |
PluginFileIO.createFileIO(Path path) |
boolean |
FileIO.delete(Path path,
boolean recursive)
Delete a file.
|
boolean |
PluginFileIO.delete(Path path,
boolean recursive) |
default void |
FileIO.deleteDirectoryQuietly(Path directory) |
default void |
FileIO.deleteQuietly(Path file) |
boolean |
FileIO.exists(Path path)
Check if exists.
|
boolean |
PluginFileIO.exists(Path path) |
static FileIO |
FileIO.get(Path path,
CatalogContext config)
Returns a reference to the
FileIO instance for accessing the file system identified
by the given path. |
default long |
FileIO.getFileSize(Path path) |
FileStatus |
FileIO.getFileStatus(Path path)
Return a file status object that represents the path.
|
FileStatus |
PluginFileIO.getFileStatus(Path path) |
default boolean |
FileIO.isDir(Path path) |
default FileStatus[] |
FileIO.listDirectories(Path path)
List the statuses of the directories in the given path if the path is a directory.
|
FileStatus[] |
FileIO.listStatus(Path path)
List the statuses of the files/directories in the given path if the path is a directory.
|
FileStatus[] |
PluginFileIO.listStatus(Path path) |
FileIO |
FileIOLoader.load(Path path) |
boolean |
FileIO.mkdirs(Path path)
Make the given file and all non-existent parents into directories.
|
boolean |
PluginFileIO.mkdirs(Path path) |
SeekableInputStream |
FileIO.newInputStream(Path path)
Opens an SeekableInputStream at the indicated Path.
|
SeekableInputStream |
PluginFileIO.newInputStream(Path path) |
PositionOutputStream |
FileIO.newOutputStream(Path path,
boolean overwrite)
Opens an PositionOutputStream at the indicated Path.
|
PositionOutputStream |
PluginFileIO.newOutputStream(Path path,
boolean overwrite) |
default void |
FileIO.overwriteFileUtf8(Path path,
String content)
Overwrite file by content atomically, different
FileIOs have different atomic
implementations. |
default String |
FileIO.readFileUtf8(Path path)
Read file to UTF_8 decoding.
|
default Optional<String> |
FileIO.readOverwrittenFileUtf8(Path path)
Read file from
FileIO.overwriteFileUtf8(org.apache.paimon.fs.Path, java.lang.String) file. |
boolean |
FileIO.rename(Path src,
Path dst)
Renames the file/directory src to dst.
|
boolean |
PluginFileIO.rename(Path src,
Path dst) |
default boolean |
FileIO.tryToWriteAtomic(Path path,
String content)
Write content to one file atomically, initially writes to temp hidden file and only renames
to the target file once temp file is closed.
|
default void |
FileIO.writeFile(Path path,
String content,
boolean overwrite) |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
FileIO.deleteFilesQuietly(List<Path> files) |
| 构造器和说明 |
|---|
Path(Path parent,
Path child)
Create a new Path based on the child path resolved against the parent path.
|
Path(Path parent,
String child)
Create a new Path based on the child path resolved against the parent path.
|
Path(String parent,
Path child)
Create a new Path based on the child path resolved against the parent path.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
HadoopFileIO.delete(Path path,
boolean recursive) |
boolean |
HadoopFileIO.exists(Path path) |
FileStatus |
HadoopFileIO.getFileStatus(Path path) |
FileStatus[] |
HadoopFileIO.listStatus(Path path) |
HadoopFileIO |
HadoopViewFsFileIOLoader.load(Path path) |
HadoopFileIO |
HadoopFileIOLoader.load(Path path) |
boolean |
HadoopFileIO.mkdirs(Path path) |
SeekableInputStream |
HadoopFileIO.newInputStream(Path path) |
PositionOutputStream |
HadoopFileIO.newOutputStream(Path path,
boolean overwrite) |
void |
HadoopFileIO.overwriteFileUtf8(Path path,
String content) |
boolean |
HadoopFileIO.rename(Path src,
Path dst) |
void |
HadoopFileIO.setFileSystem(Path path,
org.apache.hadoop.fs.FileSystem fs) |
boolean |
HadoopFileIO.tryAtomicOverwriteViaRename(Path dst,
String content) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LocalFileIO.copyFile(Path sourcePath,
Path targetPath,
boolean overwrite) |
boolean |
LocalFileIO.delete(Path path,
boolean recursive) |
boolean |
LocalFileIO.exists(Path path) |
FileStatus |
LocalFileIO.getFileStatus(Path path) |
FileStatus[] |
LocalFileIO.listStatus(Path path) |
LocalFileIO |
LocalFileIOLoader.load(Path path) |
boolean |
LocalFileIO.mkdirs(Path path) |
SeekableInputStream |
LocalFileIO.newInputStream(Path path) |
PositionOutputStream |
LocalFileIO.newOutputStream(Path path,
boolean overwrite) |
boolean |
LocalFileIO.rename(Path src,
Path dst) |
File |
LocalFileIO.toFile(Path path)
Converts the given Path to a File for this file system.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
FileRecordIterator.filePath() |
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
IteratorResultIterator.filePath() |
| 限定符和类型 | 方法和说明 |
|---|---|
static IntIterator |
IntFileUtils.readInts(FileIO fileIO,
Path path) |
static void |
IntFileUtils.writeInts(FileIO fileIO,
Path path,
IntIterator input) |
| 构造器和说明 |
|---|
IteratorResultIterator(Iterator<InternalRow> records,
Runnable recycler,
Path filePath,
long pos) |
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.