public class MagicCommitIntegration extends AbstractStoreOperation
isMagicCommitPath(Path) will always return false.isUnderMagicPath(Path) will always return false.createTracker(Path, String, PutTrackerStatistics) 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,
PutTrackerStatistics trackerStatistics)
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?
|
boolean |
isUnderMagicPath(org.apache.hadoop.fs.Path path)
Is this path in/under a magic path...regardless of file type.
|
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?
|
activateAuditSpan, getAuditSpan, getStoreContextpublic 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, PutTrackerStatistics trackerStatistics)
path - path of nominal writekey - key of path of nominal writetrackerStatistics - tracker statisticspublic boolean isMagicCommitEnabled()
public boolean isMagicCommitPath(org.apache.hadoop.fs.Path path)
path - path to examinepublic boolean isUnderMagicPath(org.apache.hadoop.fs.Path path)
path - path to checkCopyright © 2008–2024 Apache Software Foundation. All rights reserved.