public class HiveTableCloneExtractor extends Object implements HiveCloneExtractor
HiveCloneExtractor
for hive tables.Modifier and Type | Field and Description |
---|---|
static HiveTableCloneExtractor |
INSTANCE |
EXTRACTORS
Constructor and Description |
---|
HiveTableCloneExtractor() |
Modifier and Type | Method and Description |
---|---|
List<HivePartitionFiles> |
extractFiles(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
org.apache.hadoop.hive.metastore.api.Table table,
FileIO fileIO,
Identifier identifier,
RowType partitionRowType,
String defaultPartitionName,
PartitionPredicate predicate) |
Map<String,String> |
extractOptions(org.apache.hadoop.hive.metastore.api.Table table) |
List<String> |
extractPartitionKeys(org.apache.hadoop.hive.metastore.api.Table table) |
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
extractSchema(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
org.apache.hadoop.hive.metastore.api.Table hiveTable,
String database,
String table) |
static Map<String,String> |
getIdentifierPrefixOptions(String formatIdentifier,
Map<String,String> options) |
boolean |
matches(org.apache.hadoop.hive.metastore.api.Table table) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExtractor
public static final HiveTableCloneExtractor INSTANCE
public boolean matches(org.apache.hadoop.hive.metastore.api.Table table)
matches
in interface HiveCloneExtractor
public List<org.apache.hadoop.hive.metastore.api.FieldSchema> extractSchema(org.apache.hadoop.hive.metastore.IMetaStoreClient client, org.apache.hadoop.hive.metastore.api.Table hiveTable, String database, String table) throws Exception
extractSchema
in interface HiveCloneExtractor
Exception
public List<HivePartitionFiles> extractFiles(org.apache.hadoop.hive.metastore.IMetaStoreClient client, org.apache.hadoop.hive.metastore.api.Table table, FileIO fileIO, Identifier identifier, RowType partitionRowType, String defaultPartitionName, @Nullable PartitionPredicate predicate) throws Exception
extractFiles
in interface HiveCloneExtractor
Exception
public List<String> extractPartitionKeys(org.apache.hadoop.hive.metastore.api.Table table)
extractPartitionKeys
in interface HiveCloneExtractor
public Map<String,String> extractOptions(org.apache.hadoop.hive.metastore.api.Table table)
extractOptions
in interface HiveCloneExtractor
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.