@DeveloperApi
public abstract class LogStore
extends Object
Constructor and Description |
---|
LogStore(org.apache.hadoop.conf.Configuration initHadoopConf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
initHadoopConf()
:: DeveloperApi ::
Hadoop configuration that should only be used during initialization of LogStore.
|
abstract 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`.
|
abstract 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`.
|
abstract CloseableIterator<String> |
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.
|
abstract org.apache.hadoop.fs.Path |
resolvePathOnPhysicalStorage(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration hadoopConf)
:: DeveloperApi ::
Resolve the fully qualified path for the given `path`.
|
abstract void |
write(org.apache.hadoop.fs.Path path,
java.util.Iterator<String> actions,
Boolean overwrite,
org.apache.hadoop.conf.Configuration hadoopConf)
:: DeveloperApi ::
Write the given `actions` to the given `path` with or without overwrite as indicated.
|
public org.apache.hadoop.conf.Configuration initHadoopConf()
public abstract CloseableIterator<String> read(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf)
public abstract void write(org.apache.hadoop.fs.Path path, java.util.Iterator<String> actions, Boolean overwrite, org.apache.hadoop.conf.Configuration hadoopConf) throws java.nio.file.FileAlreadyExistsException
java.nio.file.FileAlreadyExistsException
public abstract java.util.Iterator<org.apache.hadoop.fs.FileStatus> listFrom(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public abstract org.apache.hadoop.fs.Path resolvePathOnPhysicalStorage(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf)
public abstract Boolean isPartialWriteVisible(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration hadoopConf)