Package io.delta.storage
Class HadoopFileSystemLogStore
Object
io.delta.storage.LogStore
io.delta.storage.HadoopFileSystemLogStore
- Direct Known Subclasses:
AzureLogStore,GCSLogStore,HDFSLogStore,LocalLogStore,S3SingleDriverLogStore
Default implementation of
LogStore for Hadoop FileSystem implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.apache.hadoop.fs.FileStatus>listFrom(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) :: DeveloperApi :: List the paths in the same directory that are lexicographically greater or equal to (UTF-8 sorting) the given `path`.read(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) :: DeveloperApi :: Load the given file and return an `Iterator` of lines, with line breaks removed from each line.org.apache.hadoop.fs.PathresolvePathOnPhysicalStorage(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) :: DeveloperApi :: Resolve the fully qualified path for the given `path`.Methods inherited from class io.delta.storage.LogStore
initHadoopConf, isPartialWriteVisible, write
-
Constructor Details
-
HadoopFileSystemLogStore
public HadoopFileSystemLogStore(org.apache.hadoop.conf.Configuration hadoopConf)
-
-
Method Details
-
read
public CloseableIterator<String> read(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException Description copied from class:LogStore:: DeveloperApi :: Load the given file and return an `Iterator` of lines, with line breaks removed from each line. Callers of this function are responsible to close the iterator if they are done with it.- Specified by:
readin classLogStore- Throws:
IOException- if there's an issue resolving the FileSystem
-
listFrom
public Iterator<org.apache.hadoop.fs.FileStatus> listFrom(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException Description copied from class:LogStore:: DeveloperApi :: List the paths in the same directory that are lexicographically greater or equal to (UTF-8 sorting) the given `path`. The result should also be sorted by the file name.- Specified by:
listFromin classLogStore- Throws:
IOException- if there's an issue resolving the FileSystemFileAlreadyExistsException- ifpathdirectory can't be found
-
resolvePathOnPhysicalStorage
public org.apache.hadoop.fs.Path resolvePathOnPhysicalStorage(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException Description copied from class:LogStore:: DeveloperApi :: Resolve the fully qualified path for the given `path`.- Specified by:
resolvePathOnPhysicalStoragein classLogStore- Throws:
IOException- if there's an issue resolving the FileSystem
-