public class HoodieMetadataFileSystemView extends HoodieTableFileSystemView
HoodieTableFileSystemView implementation that retrieved partition listings from the Metadata Table.TableFileSystemView.BaseFileOnlyView, TableFileSystemView.BaseFileOnlyViewWithLatestSlice, TableFileSystemView.SliceView, TableFileSystemView.SliceViewWithLatestSlicefgIdToBootstrapBaseFile, fgIdToPendingClustering, fgIdToPendingCompaction, fgIdToPendingLogCompaction, fgIdToReplaceInstants, partitionToFileGroupsMapmetaClient, readLock, writeLock| Constructor and Description |
|---|
HoodieMetadataFileSystemView(HoodieEngineContext engineContext,
HoodieTableMetaClient metaClient,
HoodieTimeline visibleActiveTimeline,
HoodieMetadataConfig metadataConfig) |
HoodieMetadataFileSystemView(HoodieTableMetaClient metaClient,
HoodieTimeline visibleActiveTimeline,
HoodieTableMetadata tableMetadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Allow View to release resources and close.
|
protected List<String> |
getAllPartitionPaths() |
protected List<StoragePathInfo> |
listPartition(StoragePath partitionPath)
Return all the files in the partition by reading from the Metadata Table.
|
protected Map<Pair<String,StoragePath>,List<StoragePathInfo>> |
listPartitions(List<Pair<String,StoragePath>> partitionPathList) |
void |
reset()
Clears the partition Map and reset view states.
|
void |
sync()
Syncs the file system view from storage to memory.
|
addPendingCompactionOperations, addPendingLogCompactionOperations, addReplacedFileGroups, createFileIdToBootstrapBaseFileMap, createFileIdToPendingClusteringMap, createFileIdToPendingCompactionMap, createFileIdToPendingLogCompactionMap, createFileIdToReplaceInstantMap, createPartitionToFileGroups, fetchAllStoredFileGroups, fetchFileGroupsInPendingClustering, fetchLatestFileSlicesIncludingInflight, getAllFileGroups, getBootstrapBaseFile, getPendingClusteringInstant, getPendingCompactionOperationWithInstant, getPendingLogCompactionOperationWithInstant, getReplaceInstant, hasReplacedFilesInPartition, init, init, isBootstrapBaseFilePresentForFileId, isClosed, isPartitionAvailableInStore, isPendingClusteringScheduledForFileId, isPendingCompactionScheduledForFileId, isPendingLogCompactionScheduledForFileId, removePendingCompactionOperations, removePendingLogCompactionOperations, removeReplacedFileIdsAtInstants, resetPendingCompactionOperations, resetPendingLogCompactionOperations, resetReplacedFileGroups, resetViewState, storePartitionViewapplyDeltaFileSlicesToPartitionView, getTimeline, maySyncIncrementally, refreshTimelineaddBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addFilesToView, addFilesToView, buildFileGroups, buildFileGroups, clear, fetchLatestBaseFile, fetchLatestBaseFiles, fetchLatestFileSlice, filterBaseFileAfterPendingCompaction, getAllBaseFiles, getAllFileGroups, getAllFileGroupsStateless, getAllFileSlices, getAllLatestBaseFilesBeforeOrOn, getAllLatestFileSlicesBeforeOrOn, getAllLogsMergedFileSliceBeforeOrOn, getAllReplacedFileGroups, getBaseFileOn, getFileGroupsInPendingClustering, getLastInstant, getLatestBaseFile, getLatestBaseFile, getLatestBaseFiles, getLatestBaseFiles, getLatestBaseFilesBeforeOrOn, getLatestBaseFilesInRange, getLatestFileSlice, getLatestFileSliceInRange, getLatestFileSlices, getLatestFileSlicesBeforeOrOn, getLatestFileSlicesStateless, getLatestMergedFileSlicesBeforeOrOn, getLatestUnCompactedFileSlices, getPartitionPaths, getPendingCompactionOperations, getPendingLogCompactionOperations, getReplacedFileGroupsAfterOrOn, getReplacedFileGroupsBefore, getReplacedFileGroupsBeforeOrOn, getVisibleCommitsAndCompactionTimeline, isBaseFileDueToPendingClustering, isBaseFileDueToPendingCompaction, isFileSliceAfterPendingCompaction, loadAllPartitions, loadPartitionspublic HoodieMetadataFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline visibleActiveTimeline, HoodieTableMetadata tableMetadata)
public HoodieMetadataFileSystemView(HoodieEngineContext engineContext, HoodieTableMetaClient metaClient, HoodieTimeline visibleActiveTimeline, HoodieMetadataConfig metadataConfig)
protected List<StoragePathInfo> listPartition(StoragePath partitionPath) throws IOException
listPartition in class AbstractTableFileSystemViewpartitionPath - The absolute path of the partitionIOExceptionprotected List<String> getAllPartitionPaths() throws IOException
getAllPartitionPaths in class AbstractTableFileSystemViewIOException - upon error.protected Map<Pair<String,StoragePath>,List<StoragePathInfo>> listPartitions(List<Pair<String,StoragePath>> partitionPathList) throws IOException
listPartitions in class AbstractTableFileSystemViewpartitionPathList - A list of pairs of the relative and absolute paths of the partitions.IOException - upon error.public void reset()
AbstractTableFileSystemViewNOTE: The logic MUST BE guarded by the write lock.
reset in interface SyncableFileSystemViewreset in class AbstractTableFileSystemViewpublic void sync()
AbstractTableFileSystemViewNOTE: The logic MUST BE guarded by the write lock.
sync in interface SyncableFileSystemViewsync in class IncrementalTimelineSyncFileSystemViewpublic void close()
SyncableFileSystemViewclose in interface SyncableFileSystemViewclose in class HoodieTableFileSystemViewCopyright © 2024 The Apache Software Foundation. All rights reserved.