public class HoodieTimelineArchiver<T extends HoodieAvroPayload,I,K,O> extends Object
| Constructor and Description |
|---|
HoodieTimelineArchiver(HoodieWriteConfig config,
HoodieTable<T,I,K,O> table) |
| Modifier and Type | Method and Description |
|---|---|
void |
archive(HoodieEngineContext context,
List<HoodieInstant> instants) |
boolean |
archiveIfRequired(HoodieEngineContext context) |
boolean |
archiveIfRequired(HoodieEngineContext context,
boolean acquireLock)
Check if commits need to be archived.
|
void |
buildArchiveMergePlan(List<String> compactCandidate,
org.apache.hadoop.fs.Path planPath,
String compactedArchiveFileName) |
void |
mergeArchiveFiles(List<org.apache.hadoop.fs.FileStatus> compactCandidate) |
HoodieLogFormat.Writer |
reOpenWriter() |
boolean |
shouldMergeSmallArchiveFiles() |
public HoodieTimelineArchiver(HoodieWriteConfig config, HoodieTable<T,I,K,O> table)
public HoodieLogFormat.Writer reOpenWriter()
public boolean archiveIfRequired(HoodieEngineContext context) throws IOException
IOExceptionpublic boolean archiveIfRequired(HoodieEngineContext context, boolean acquireLock) throws IOException
IOExceptionpublic boolean shouldMergeSmallArchiveFiles()
public void buildArchiveMergePlan(List<String> compactCandidate, org.apache.hadoop.fs.Path planPath, String compactedArchiveFileName) throws IOException
IOExceptionpublic void mergeArchiveFiles(List<org.apache.hadoop.fs.FileStatus> compactCandidate) throws IOException
IOExceptionpublic void archive(HoodieEngineContext context, List<HoodieInstant> instants) throws HoodieCommitException
HoodieCommitExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.