public class HoodieArchivedTimeline extends HoodieDefaultTimeline
Instants are read from the archive file during initialization and never refreshed. To refresh, clients need to call reload()
This class can be serialized and de-serialized and on de-serialization the FileSystem is re-initialized.
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieArchivedTimeline.ArchiveFileVersionComparator
Sort files by reverse order of version suffix in file name.
|
detailsCLEAN_ACTION, CLEAN_EXTENSION, COMMIT_ACTION, COMMIT_EXTENSION, COMPACTION_ACTION, DELTA_COMMIT_ACTION, DELTA_COMMIT_EXTENSION, EQUALS, FULL_BOOTSTRAP_INSTANT_TS, GREATER_THAN, GREATER_THAN_OR_EQUALS, INFLIGHT_CLEAN_EXTENSION, INFLIGHT_COMMIT_EXTENSION, INFLIGHT_COMPACTION_EXTENSION, INFLIGHT_DELTA_COMMIT_EXTENSION, INFLIGHT_EXTENSION, INFLIGHT_REPLACE_COMMIT_EXTENSION, INFLIGHT_RESTORE_EXTENSION, INFLIGHT_ROLLBACK_EXTENSION, INFLIGHT_SAVEPOINT_EXTENSION, INIT_INSTANT_TS, INVALID_INSTANT_TS, LESSER_THAN, LESSER_THAN_OR_EQUALS, METADATA_BOOTSTRAP_INSTANT_TS, REPLACE_COMMIT_ACTION, REPLACE_COMMIT_EXTENSION, REQUESTED_CLEAN_EXTENSION, REQUESTED_COMMIT_EXTENSION, REQUESTED_COMPACTION_EXTENSION, REQUESTED_COMPACTION_SUFFIX, REQUESTED_DELTA_COMMIT_EXTENSION, REQUESTED_EXTENSION, REQUESTED_REPLACE_COMMIT_EXTENSION, RESTORE_ACTION, RESTORE_EXTENSION, ROLLBACK_ACTION, ROLLBACK_EXTENSION, SAVEPOINT_ACTION, SAVEPOINT_EXTENSION, VALID_ACTIONS_IN_TIMELINE| Constructor and Description |
|---|
HoodieArchivedTimeline()
Deprecated.
|
HoodieArchivedTimeline(HoodieTableMetaClient metaClient)
Loads instants between (startTs, endTs].
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearInstantDetailsFromMemory(String startTs,
String endTs) |
static org.apache.hadoop.fs.Path |
getArchiveLogPath(String archiveFolder) |
Option<byte[]> |
getInstantDetails(HoodieInstant instant)
Read the completed instant details.
|
void |
loadInstantDetailsInMemory(String startTs,
String endTs) |
HoodieArchivedTimeline |
reload() |
containsInstant, containsInstant, containsOrBeforeTimelineStarts, countInstants, empty, filter, filterCompletedAndCompactionInstants, filterCompletedInstants, filterInflights, filterInflightsAndRequested, filterInstantsByAction, filterPendingCompactionTimeline, filterPendingExcludingCompaction, filterPendingReplaceTimeline, findInstantsAfter, findInstantsAfter, findInstantsAfterOrEquals, findInstantsBefore, findInstantsBeforeOrEquals, findInstantsInRange, firstInstant, getAllCommitsTimeline, getCleanerTimeline, getCommitsTimeline, getCommitTimeline, getCompletedReplaceTimeline, getDeltaCommitTimeline, getInstants, getRestoreTimeline, getReverseOrderedInstants, getRollbackTimeline, getSavePointTimeline, getTimelineHash, getTimelineOfActions, getWriteTimeline, isBeforeTimelineStarts, lastInstant, nthFromLastInstant, nthInstant, setInstants, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTimestamps, getCleanInflightInstant, getCleanRequestedInstant, getCommitFromCommitFile, getCompactionInflightInstant, getCompactionRequestedInstant, getCompletedInstant, getInflightInstant, getReplaceCommitInflightInstant, getReplaceCommitRequestedInstant, getRequestedInstant, isInRange, makeCleanerFileName, makeCommitFileName, makeDeltaFileName, makeFileNameAsComplete, makeFileNameAsInflight, makeInflightCleanerFileName, makeInflightCommitFileName, makeInflightCompactionFileName, makeInflightDeltaFileName, makeInflightReplaceFileName, makeInflightRestoreFileName, makeInflightRollbackFileName, makeInflightSavePointFileName, makeReplaceFileName, makeRequestedCleanerFileName, makeRequestedCommitFileName, makeRequestedCompactionFileName, makeRequestedDeltaFileName, makeRequestedReplaceFileName, makeRestoreFileName, makeRollbackFileName, makeSavePointFileNamepublic HoodieArchivedTimeline(HoodieTableMetaClient metaClient)
public HoodieArchivedTimeline()
public static org.apache.hadoop.fs.Path getArchiveLogPath(String archiveFolder)
public void clearInstantDetailsFromMemory(String startTs, String endTs)
public Option<byte[]> getInstantDetails(HoodieInstant instant)
HoodieTimelinegetInstantDetails in interface HoodieTimelinegetInstantDetails in class HoodieDefaultTimelinepublic HoodieArchivedTimeline reload()
Copyright © 2021 The Apache Software Foundation. All rights reserved.