public static class AbstractS3ACommitter.ActiveCommit extends Object
| Constructor and Description |
|---|
ActiveCommit(org.apache.hadoop.fs.FileSystem sourceFS,
List<org.apache.hadoop.fs.Path> sourceFiles)
Construct from a source FS and list of files.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.hadoop.fs.Path path) |
static AbstractS3ACommitter.ActiveCommit |
empty()
Get the empty entry.
|
static AbstractS3ACommitter.ActiveCommit |
fromStatusList(org.apache.hadoop.fs.FileSystem pendingFS,
List<? extends org.apache.hadoop.fs.FileStatus> statuses)
Create an active commit of the given pending files.
|
long |
getCommittedBytes() |
int |
getCommittedFileCount() |
List<String> |
getCommittedObjects() |
List<org.apache.hadoop.fs.Path> |
getSourceFiles() |
org.apache.hadoop.fs.FileSystem |
getSourceFS() |
boolean |
isEmpty() |
int |
size() |
void |
uploadCommitted(String key,
long size)
Note that a file was committed.
|
public ActiveCommit(org.apache.hadoop.fs.FileSystem sourceFS,
List<org.apache.hadoop.fs.Path> sourceFiles)
sourceFS - filesystem containing the list of pending filessourceFiles - .pendingset files to load and commit.public static AbstractS3ACommitter.ActiveCommit fromStatusList(org.apache.hadoop.fs.FileSystem pendingFS, List<? extends org.apache.hadoop.fs.FileStatus> statuses)
pendingFS - source filesystem.statuses - list of file status or subclass to use.public static AbstractS3ACommitter.ActiveCommit empty()
public List<org.apache.hadoop.fs.Path> getSourceFiles()
public org.apache.hadoop.fs.FileSystem getSourceFS()
public void uploadCommitted(String key, long size)
key - key of the committed object.size - size in bytes.public int getCommittedFileCount()
public long getCommittedBytes()
public int size()
public boolean isEmpty()
public void add(org.apache.hadoop.fs.Path path)
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.