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, fgIdToReplaceInstants, partitionToFileGroupsMapmetaClient| 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 org.apache.hadoop.fs.FileStatus[] |
listPartition(org.apache.hadoop.fs.Path partitionPath)
Return all the files in the partition by reading from the Metadata Table.
|
void |
reset()
Clears the partition Map and reset view states.
|
void |
sync()
Read the latest timeline and refresh the file-system view to match the current state of the file-system.
|
addPendingCompactionOperations, addReplacedFileGroups, createFileIdToBootstrapBaseFileMap, createFileIdToPendingClusteringMap, createFileIdToPendingCompactionMap, createFileIdToReplaceInstantMap, createPartitionToFileGroups, fetchAllStoredFileGroups, fetchFileGroupsInPendingClustering, fetchLatestFileSlicesIncludingInflight, getAllFileGroups, getBootstrapBaseFile, getPendingClusteringInstant, getPendingCompactionOperationWithInstant, getReplaceInstant, init, init, isBootstrapBaseFilePresentForFileId, isClosed, isPartitionAvailableInStore, isPendingClusteringScheduledForFileId, isPendingCompactionScheduledForFileId, removePendingCompactionOperations, removeReplacedFileIdsAtInstants, resetPendingCompactionOperations, resetReplacedFileGroups, resetViewState, storePartitionViewapplyDeltaFileSlicesToPartitionView, getTimeline, refreshTimeline, runSyncaddBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addBootstrapBaseFileIfPresent, addFilesToView, buildFileGroups, buildFileGroups, fetchLatestBaseFile, fetchLatestBaseFiles, fetchLatestFileSlice, filterBaseFileAfterPendingCompaction, getAllBaseFiles, getAllFileGroups, getAllFileSlices, getAllReplacedFileGroups, getBaseFileOn, getFileGroupsInPendingClustering, getLastInstant, getLatestBaseFile, getLatestBaseFile, getLatestBaseFiles, getLatestBaseFiles, getLatestBaseFilesBeforeOrOn, getLatestBaseFilesInRange, getLatestFileSlice, getLatestFileSliceInRange, getLatestFileSlices, getLatestFileSlicesBeforeOrOn, getLatestMergedFileSlicesBeforeOrOn, getLatestUnCompactedFileSlices, getPartitionPaths, getPendingCompactionOperations, getReplacedFileGroupsBefore, getReplacedFileGroupsBeforeOrOn, getVisibleCommitsAndCompactionTimeline, isBaseFileDueToPendingClustering, isBaseFileDueToPendingCompaction, isFileSliceAfterPendingCompactionpublic HoodieMetadataFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline visibleActiveTimeline, HoodieTableMetadata tableMetadata)
public HoodieMetadataFileSystemView(HoodieEngineContext engineContext, HoodieTableMetaClient metaClient, HoodieTimeline visibleActiveTimeline, HoodieMetadataConfig metadataConfig)
protected org.apache.hadoop.fs.FileStatus[] listPartition(org.apache.hadoop.fs.Path partitionPath)
throws IOException
listPartition in class AbstractTableFileSystemViewpartitionPath - The absolute path of the partitionIOExceptionpublic void reset()
AbstractTableFileSystemViewreset in interface SyncableFileSystemViewreset in class AbstractTableFileSystemViewpublic void sync()
SyncableFileSystemViewsync in interface SyncableFileSystemViewsync in class AbstractTableFileSystemViewpublic void close()
SyncableFileSystemViewclose in interface SyncableFileSystemViewclose in class HoodieTableFileSystemViewCopyright © 2022 The Apache Software Foundation. All rights reserved.