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,
String tablePath,
org.apache.hadoop.conf.Configuration hadoopConf,
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, org.apache.hadoop.conf.Configuration hadoopConf, String validCommits)
versionId - the internalSchema version to be search.tablePath - table pathhadoopConf - confvalidCommits - current validate commits, use to make up the commit file path/verify the validity of the history schema filesCopyright © 2022 The Apache Software Foundation. All rights reserved.