public class MetastoreDefaultTransformer extends Object implements IMetaStoreMetadataTransformer
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
MetastoreDefaultTransformer(IHMSHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
Map<Table,List<String>> |
transform(List<Table> objects,
List<String> processorCapabilities,
String processorId) |
Table |
transformAlterTable(Table oldTable,
Table newTable,
List<String> processorCapabilities,
String processorId) |
Table |
transformCreateTable(Table table,
List<String> processorCapabilities,
String processorId) |
Database |
transformDatabase(Database db,
List<String> processorCapabilities,
String processorId)
Alter location of the database depending on whether or not the processor has ACID capabilities.
|
List<Partition> |
transformPartitions(List<Partition> objects,
Table table,
List<String> processorCapabilities,
String processorId) |
public MetastoreDefaultTransformer(IHMSHandler handler) throws HiveMetaException
HiveMetaExceptionpublic Map<Table,List<String>> transform(List<Table> objects, List<String> processorCapabilities, String processorId) throws MetaException
transform in interface IMetaStoreMetadataTransformerobjects - A list of tables to be transformed.processorCapabilities - A array of String capabilities received from the data processorprocessorId - String ID used for logging purpose.MetaExceptionpublic List<Partition> transformPartitions(List<Partition> objects, Table table, List<String> processorCapabilities, String processorId) throws MetaException
transformPartitions in interface IMetaStoreMetadataTransformerobjects - A list of Partition objects to be transformedprocessorCapabilities - A array of String capabilities received from the data processorprocessorId - String ID used for logging purpose.MetaExceptionpublic Table transformCreateTable(Table table, List<String> processorCapabilities, String processorId) throws MetaException
transformCreateTable in interface IMetaStoreMetadataTransformertable - A table object to be transformed prior to the creation of the tableprocessorCapabilities - A array of String capabilities received from the data processorprocessorId - String ID used for logging purpose.MetaExceptionpublic Table transformAlterTable(Table oldTable, Table newTable, List<String> processorCapabilities, String processorId) throws MetaException
transformAlterTable in interface IMetaStoreMetadataTransformeroldTable - A table object to be transformed prior to the alteration of a tableprocessorCapabilities - A array of String capabilities received from the data processorprocessorId - String ID used for logging purpose.MetaExceptionpublic Database transformDatabase(Database db, List<String> processorCapabilities, String processorId) throws MetaException
transformDatabase in interface IMetaStoreMetadataTransformerdb - A database object to be transformed, mainly db locationprocessorCapabilities - A array of String capabilities received from the data processorprocessorId - String ID used for logging purpose.MetaExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.