public class DefaultFileSystemClient
extends Object
implements io.delta.kernel.engine.FileSystemClient
FileSystemClient
based on Hadoop APIs. It takes a Hadoop
Configuration
object to interact with the file system. The following optional
configurations can be set to customize the behavior of the client:
io.delta.kernel.logStore.<scheme>.impl
- The class name of the custom
LogStore
implementation to use for operations on storage systems with the
specified scheme
. For example, to use a custom LogStore
for S3 storage
objects:
<property>
<name>io.delta.kernel.logStore.s3.impl</name>
<value>com.example.S3LogStore</value>
</property>
If not set, the default LogStore implementation for the scheme will be used.
delta.enableFastS3AListFrom
- Set to true
to enable fast listing
functionality when using a LogStore
created for S3 storage objects.
FileSystem
.Constructor and Description |
---|
DefaultFileSystemClient(org.apache.hadoop.conf.Configuration hadoopConf)
Create an instance of the default
FileSystemClient implementation. |
Modifier and Type | Method and Description |
---|---|
io.delta.kernel.utils.CloseableIterator<io.delta.kernel.utils.FileStatus> |
listFrom(String filePath) |
boolean |
mkdirs(String path) |
io.delta.kernel.utils.CloseableIterator<java.io.ByteArrayInputStream> |
readFiles(io.delta.kernel.utils.CloseableIterator<io.delta.kernel.engine.FileReadRequest> readRequests) |
String |
resolvePath(String path) |
public DefaultFileSystemClient(org.apache.hadoop.conf.Configuration hadoopConf)
FileSystemClient
implementation.hadoopConf
- Configuration to use. List of options to customize the behavior of
the client can be found in the class documentation.public io.delta.kernel.utils.CloseableIterator<io.delta.kernel.utils.FileStatus> listFrom(String filePath) throws java.io.IOException
listFrom
in interface io.delta.kernel.engine.FileSystemClient
java.io.IOException
public String resolvePath(String path) throws java.io.IOException
resolvePath
in interface io.delta.kernel.engine.FileSystemClient
java.io.IOException
public io.delta.kernel.utils.CloseableIterator<java.io.ByteArrayInputStream> readFiles(io.delta.kernel.utils.CloseableIterator<io.delta.kernel.engine.FileReadRequest> readRequests)
readFiles
in interface io.delta.kernel.engine.FileSystemClient
public boolean mkdirs(String path) throws java.io.IOException
mkdirs
in interface io.delta.kernel.engine.FileSystemClient
java.io.IOException