public class S3SingleDriverLogStore extends HadoopFileSystemLogStore
We assume the following from S3's FileSystem implementations:
Regarding file creation, this implementation:
Regarding directory listing, this implementation:
| Constructor and Description |
|---|
S3SingleDriverLogStore(org.apache.hadoop.conf.Configuration hadoopConf) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
isPartialWriteVisible(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration hadoopConf)
:: DeveloperApi ::
Whether a partial write is visible for the underlying file system of `path`.
|
java.util.Iterator<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`.
|
void |
write(org.apache.hadoop.fs.Path path,
java.util.Iterator<java.lang.String> actions,
java.lang.Boolean overwrite,
org.apache.hadoop.conf.Configuration hadoopConf)
:: DeveloperApi ::
Write the given `actions` to the given `path` with or without overwrite as indicated.
|
createTempPath, read, resolvePathOnPhysicalStorage, writeWithRenameinitHadoopConfpublic S3SingleDriverLogStore(org.apache.hadoop.conf.Configuration hadoopConf)
public void write(org.apache.hadoop.fs.Path path,
java.util.Iterator<java.lang.String> actions,
java.lang.Boolean overwrite,
org.apache.hadoop.conf.Configuration hadoopConf)
throws java.io.IOException
LogStoreFileAlreadyExistsException exception if the
file already exists and overwrite = false. Furthermore, if isPartialWriteVisible returns false,
implementation must ensure that the entire file is made visible atomically, that is,
it should not generate partial files.public java.util.Iterator<org.apache.hadoop.fs.FileStatus> listFrom(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration hadoopConf)
throws java.io.IOException
LogStorelistFrom in class HadoopFileSystemLogStorejava.io.IOException - if there's an issue resolving the FileSystemjava.nio.file.FileAlreadyExistsException - if path directory can't be foundpublic java.lang.Boolean isPartialWriteVisible(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration hadoopConf)
LogStoreisPartialWriteVisible in class LogStore