public class InternalSchemaCache extends Object
| Constructor and Description |
|---|
InternalSchemaCache() |
| Modifier and Type | Method and Description |
|---|---|
static Pair<Option<String>,Option<String>> |
getInternalSchemaAndAvroSchemaForClusteringAndCompaction(HoodieTableMetaClient metaClient,
String compactionAndClusteringInstant)
Get internalSchema and avroSchema for compaction/cluster operation.
|
static InternalSchema |
getInternalSchemaByVersionId(long versionId,
HoodieTableMetaClient metaClient) |
static InternalSchema |
getInternalSchemaByVersionId(long versionId,
String tablePath,
HoodieStorage storage,
String validCommits)
Give a schema versionId return its internalSchema.
|
static InternalSchema |
searchSchemaAndCache(long versionID,
HoodieTableMetaClient metaClient,
boolean cacheEnable)
Search internalSchema based on versionID.
|
public static InternalSchema searchSchemaAndCache(long versionID, HoodieTableMetaClient metaClient, boolean cacheEnable)
versionID - schema version_id need to searchmetaClient - current hoodie metaClientpublic static Pair<Option<String>,Option<String>> getInternalSchemaAndAvroSchemaForClusteringAndCompaction(HoodieTableMetaClient metaClient, String compactionAndClusteringInstant)
metaClient - current hoodie metaClientcompactionAndClusteringInstant - first instant before current compaction/cluster instantpublic static InternalSchema getInternalSchemaByVersionId(long versionId, String tablePath, HoodieStorage storage, String validCommits)
versionId - the internalSchema version to be search.tablePath - table pathstorage - HoodieStorage instance.validCommits - current validate commits, use to make up the commit file path/verify the validity of the history schema filespublic static InternalSchema getInternalSchemaByVersionId(long versionId, HoodieTableMetaClient metaClient)
Copyright © 2024 The Apache Software Foundation. All rights reserved.