Class AbstractTransformer<T>
java.lang.Object
org.apache.drill.metastore.rdbms.transform.AbstractTransformer<T>
- Type Parameters:
T
- Metastore component metadata type
- All Implemented Interfaces:
Transformer<T>
- Direct Known Subclasses:
TablesTransformer
Abstract implementation of
Transformer
interface which contains
common code for all Metastore component metadata types.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts Metastore delete operation holder into list of RDBMS Metastore delete operations.Creates list of RDBMS Metastore delete operations which will delete all data from corresponding Metastore component tables.protected RdbmsOperation.Overwrite
toOverwrite
(String metadataTypeString, List<T> units) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.metastore.rdbms.transform.Transformer
toMapper, toMappers, toOverwrite
-
Constructor Details
-
AbstractTransformer
public AbstractTransformer()
-
-
Method Details
-
toDelete
Description copied from interface:Transformer
Converts Metastore delete operation holder into list of RDBMS Metastore delete operations.- Specified by:
toDelete
in interfaceTransformer<T>
- Parameters:
delete
- Metastore delete operation holder- Returns:
- list of RDBMS Metastore delete operations
-
toDeleteAll
Description copied from interface:Transformer
Creates list of RDBMS Metastore delete operations which will delete all data from corresponding Metastore component tables.- Specified by:
toDeleteAll
in interfaceTransformer<T>
- Returns:
- list of RDBMS Metastore delete operations
-
toOverwrite
-