public abstract class BaseHoodieTableFileIndex extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
BaseHoodieTableFileIndex.FileStatusCache
APIs for caching
StoragePathInfo. |
static class |
BaseHoodieTableFileIndex.PartitionPath
Partition path information containing the relative partition path
and values of partition columns.
|
| Modifier and Type | Field and Description |
|---|---|
protected HoodieMetadataConfig |
metadataConfig |
| Constructor and Description |
|---|
BaseHoodieTableFileIndex(HoodieEngineContext engineContext,
HoodieTableMetaClient metaClient,
TypedProperties configProperties,
HoodieTableQueryType queryType,
List<StoragePath> queryPaths,
Option<String> specifiedQueryInstant,
boolean shouldIncludePendingCommits,
boolean shouldValidateInstant,
BaseHoodieTableFileIndex.FileStatusCache fileStatusCache,
boolean shouldListLazily,
Option<String> beginInstantTime,
Option<String> endInstantTime) |
protected final HoodieMetadataConfig metadataConfig
public BaseHoodieTableFileIndex(HoodieEngineContext engineContext, HoodieTableMetaClient metaClient, TypedProperties configProperties, HoodieTableQueryType queryType, List<StoragePath> queryPaths, Option<String> specifiedQueryInstant, boolean shouldIncludePendingCommits, boolean shouldValidateInstant, BaseHoodieTableFileIndex.FileStatusCache fileStatusCache, boolean shouldListLazily, Option<String> beginInstantTime, Option<String> endInstantTime)
engineContext - Hudi engine-specific contextmetaClient - Hudi table's meta-clientconfigProperties - unifying configuration (in the form of generic properties)queryType - target query typequeryPaths - target DFS paths being queriedspecifiedQueryInstant - instant as of which table is being queriedshouldIncludePendingCommits - flags whether file-index should exclude any pending operationsshouldValidateInstant - flags to validate whether query instant is present in the timelinefileStatusCache - transient cache of fetched [[FileStatus]]esbeginInstantTime - begin instant time for incremental query (optional)endInstantTime - end instant time for incremental query (optional)protected abstract Object[] doParsePartitionColumnValues(String[] partitionColumns, String partitionPath)
public Option<HoodieInstant> getLatestCompletedInstant()
public StoragePath getBasePath()
public int getFileSlicesCount()
public void close()
throws Exception
close in interface AutoCloseableExceptionprotected String[] getPartitionColumns()
protected List<StoragePath> getQueryPaths()
protected List<BaseHoodieTableFileIndex.PartitionPath> getAllQueryPartitionPaths()
protected Map<BaseHoodieTableFileIndex.PartitionPath,List<FileSlice>> getAllInputFileSlices()
getAllQueryPartitionPaths()protected Map<BaseHoodieTableFileIndex.PartitionPath,List<FileSlice>> getInputFileSlices(BaseHoodieTableFileIndex.PartitionPath... partitions)
protected List<BaseHoodieTableFileIndex.PartitionPath> listPartitionPaths(List<String> relativePartitionPaths, Types.RecordType partitionFields, Expression partitionColumnPredicates)
protected List<BaseHoodieTableFileIndex.PartitionPath> listPartitionPaths(List<String> relativePartitionPaths)
protected void refresh()
protected HoodieTimeline getActiveTimeline()
protected long getTotalCachedFilesSize()
protected boolean areAllFileSlicesCached()
protected boolean areAllPartitionPathsCached()
protected boolean shouldReadAsPartitionedTable()
Copyright © 2024 The Apache Software Foundation. All rights reserved.