| 程序包 | 说明 |
|---|---|
| org.apache.paimon | |
| org.apache.paimon.catalog | |
| org.apache.paimon.format | |
| org.apache.paimon.fs | |
| org.apache.paimon.fs.hadoop | |
| org.apache.paimon.fs.local | |
| org.apache.paimon.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
CoreOptions.path() |
static Path |
CoreOptions.path(Map<String,String> options) |
static Path |
CoreOptions.path(Options options) |
| 限定符和类型 | 方法和说明 |
|---|---|
static CatalogContext |
CatalogContext.create(Path warehouse) |
| 限定符和类型 | 方法和说明 |
|---|---|
RecordReader<InternalRow> |
FormatReaderFactory.createReader(FileIO fileIO,
Path file) |
RecordReader<InternalRow> |
FormatReaderFactory.createReader(FileIO fileIO,
Path file,
int poolSize) |
FieldStats[] |
TableStatsExtractor.extract(FileIO fileIO,
Path path) |
Pair<FieldStats[],TableStatsExtractor.FileInfo> |
TableStatsExtractor.extractWithFileInfo(FileIO fileIO,
Path path) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 boolean |
FileIO.copyFileUtf8(Path sourcePath,
Path targetPath)
Read file to UTF_8 decoding, then write content to one file atomically, initially writes to
temp hidden file and only renames to the target file once temp file is closed.
|
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) |
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.writeFileUtf8(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.
|
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static IntIterator |
IntFileUtils.readInts(FileIO fileIO,
Path path) |
static void |
IntFileUtils.writeInts(FileIO fileIO,
Path path,
IntIterator input) |
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.