public class MagicCommitIntegration extends Object
isMagicCommitPath(Path) will always return false.createTracker(Path, String) will always return an instance
of PutTracker.Important
: must not directly or indirectly import a class which uses any datatype in hadoop-mapreduce.| Constructor and Description |
|---|
MagicCommitIntegration(S3AFileSystem owner,
boolean magicCommitEnabled)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
PutTracker |
createTracker(org.apache.hadoop.fs.Path path,
String key)
Given a path and a key to that same path, create a tracker for it.
|
boolean |
isMagicCommitEnabled()
Is magic commit enabled?
|
boolean |
isMagicCommitPath(org.apache.hadoop.fs.Path path)
Predicate: is a path a magic commit path?
|
String |
keyOfFinalDestination(List<String> elements,
String key)
Given an (elements, key) pair, return the key of the final destination of
the PUT, that is: where the final path is expected to go?
|
public MagicCommitIntegration(S3AFileSystem owner, boolean magicCommitEnabled)
owner - owner classmagicCommitEnabled - is magic commit enabled.public String keyOfFinalDestination(List<String> elements, String key)
elements - path split to elementskey - keypublic PutTracker createTracker(org.apache.hadoop.fs.Path path, String key)
path - path of nominal writekey - key of path of nominal writepublic boolean isMagicCommitEnabled()
public boolean isMagicCommitPath(org.apache.hadoop.fs.Path path)
path - path to examineCopyright © 2008–2021 Apache Software Foundation. All rights reserved.