| Package | Description |
|---|---|
| org.apache.hudi.storage |
| Modifier and Type | Method and Description |
|---|---|
boolean |
StoragePathFilter.accept(StoragePath path)
Tests whether the specified path should be included in a path list.
|
abstract OutputStream |
HoodieStorage.append(StoragePath path)
Appends to an existing file (optional operation).
|
OutputStream |
HoodieStorage.create(StoragePath path)
Create an OutputStream at the indicated path.
|
abstract OutputStream |
HoodieStorage.create(StoragePath path,
boolean overwrite)
Creates an OutputStream at the indicated path.
|
abstract OutputStream |
HoodieStorage.create(StoragePath path,
boolean overwrite,
Integer bufferSize,
Short replication,
Long sizeThreshold)
Creates an OutputStream at the indicated path.
|
abstract boolean |
HoodieStorage.createDirectory(StoragePath path)
Creates the directory and non-existent parent directories.
|
void |
HoodieStorage.createImmutableFileInPath(StoragePath path,
Option<HoodieInstantWriter> contentWriter)
Creates a new file with overwrite set to false.
|
void |
HoodieStorage.createImmutableFileInPath(StoragePath path,
Option<HoodieInstantWriter> contentWriter,
boolean needTempFile)
Creates a new file with overwrite set to false.
|
boolean |
HoodieStorage.createNewFile(StoragePath path)
Creates an empty new file at the indicated path.
|
abstract boolean |
HoodieStorage.deleteDirectory(StoragePath path)
Deletes a directory at path.
|
abstract boolean |
HoodieStorage.deleteFile(StoragePath path)
Deletes a file at path.
|
int |
StoragePath.depth() |
abstract boolean |
HoodieStorage.exists(StoragePath path)
Checks if a path exists.
|
short |
StoragePathInfo.getBlockReplication() |
long |
StoragePathInfo.getBlockSize() |
StorageConfiguration<?> |
HoodieStorage.getConf() |
abstract int |
HoodieStorage.getDefaultBlockSize(StoragePath path) |
abstract int |
HoodieStorage.getDefaultBufferSize() |
abstract short |
HoodieStorage.getDefaultReplication(StoragePath path) |
String |
StoragePath.getFileExtension() |
abstract Object |
HoodieStorage.getFileSystem() |
long |
StoragePathInfo.getLength() |
String[] |
StoragePathInfo.getLocations() |
long |
StoragePathInfo.getModificationTime() |
String |
StoragePath.getName() |
StoragePath |
StoragePath.getParent() |
StoragePath |
StoragePathInfo.getPath() |
abstract StoragePathInfo |
HoodieStorage.getPathInfo(StoragePath path)
Returns a
StoragePathInfo object that represents the path. |
StoragePath |
StoragePath.getPathWithoutSchemeAndAuthority() |
abstract HoodieStorage |
HoodieStorage.getRawStorage() |
abstract String |
HoodieStorage.getScheme() |
abstract URI |
HoodieStorage.getUri()
Returns a URI which identifies this HoodieStorage.
|
List<StoragePathInfo> |
HoodieStorage.globEntries(StoragePath pathPattern)
Returns all the files that match the pathPattern and are not checksum files.
|
abstract List<StoragePathInfo> |
HoodieStorage.globEntries(StoragePath pathPattern,
StoragePathFilter filter)
Returns all the files that match the pathPattern and are not checksum files,
and filters the results.
|
boolean |
StoragePath.isAbsolute() |
boolean |
StoragePathInfo.isDirectory() |
boolean |
StoragePathInfo.isFile() |
List<StoragePathInfo> |
HoodieStorage.listDirectEntries(List<StoragePath> pathList)
Lists the file info of the direct files/directories in the given list of paths,
if the paths are directory.
|
List<StoragePathInfo> |
HoodieStorage.listDirectEntries(List<StoragePath> pathList,
StoragePathFilter filter)
Lists the file info of the direct files/directories in the given list of paths
and filters the results, if the paths are directory.
|
abstract List<StoragePathInfo> |
HoodieStorage.listDirectEntries(StoragePath path)
Lists the path info of the direct files/directories in the given path if the path is a directory.
|
abstract List<StoragePathInfo> |
HoodieStorage.listDirectEntries(StoragePath path,
StoragePathFilter filter)
Lists the path info of the direct files/directories in the given path
and filters the results, if the path is a directory.
|
abstract List<StoragePathInfo> |
HoodieStorage.listFiles(StoragePath path)
Lists the path info of all files under the give path recursively.
|
StoragePath |
StoragePath.makeQualified(URI defaultUri)
Returns a qualified path object.
|
boolean |
HoodieStorage.needCreateTempFile() |
abstract HoodieStorage |
HoodieStorage.newInstance(StoragePath path,
StorageConfiguration<?> storageConf) |
abstract InputStream |
HoodieStorage.open(StoragePath path)
Opens an InputStream at the indicated path.
|
SeekableDataInputStream |
HoodieStorage.openSeekable(StoragePath path,
boolean wrapStream)
Opens an SeekableDataInputStream at the indicated path with seeks supported.
|
abstract SeekableDataInputStream |
HoodieStorage.openSeekable(StoragePath path,
int bufferSize,
boolean wrapStream)
Opens an SeekableDataInputStream at the indicated path with seeks supported.
|
abstract boolean |
HoodieStorage.rename(StoragePath oldPath,
StoragePath newPath)
Renames the path from old to new.
|
abstract void |
HoodieStorage.setModificationTime(StoragePath path,
long modificationTimeInMillisEpoch)
Sets Modification Time for the storage Path
|
URI |
StoragePath.toUri() |
Copyright © 2025 The Apache Software Foundation. All rights reserved.