Interface Transformer<T>
- Type Parameters:
T
- Metastore component metadata type
- All Known Implementing Classes:
AbstractTransformer
,TablesTransformer
public interface Transformer<T>
Provides various methods for RDBMS Metastore data, filters, operations transformation.
-
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.MetadataMapper<T,
? extends org.jooq.Record> toMapper
(MetadataType metadataType) Returns metadata mappers corresponding to the given metadata type.Set<MetadataMapper<T,
? extends org.jooq.Record>> toMappers
(Set<MetadataType> metadataTypes) Returns set of metadata mappers corresponding to the given metadata types.toOverwrite
(List<T> units) Converts given list of Metastore component metadata units into RDBMS Metastore overwrite operations.
-
Method Details
-
toMappers
Returns set of metadata mappers corresponding to the given metadata types.- Parameters:
metadataTypes
- set of metadata types- Returns:
- set of metadata mappers
-
toMapper
Returns metadata mappers corresponding to the given metadata type.- Parameters:
metadataType
- metadata type- Returns:
- metadata mapper
-
toOverwrite
Converts given list of Metastore component metadata units into RDBMS Metastore overwrite operations.- Parameters:
units
- Metastore metadata units- Returns:
- list of RDBMS Metastore overwrite operations
-
toDelete
Converts Metastore delete operation holder into list of RDBMS Metastore delete operations.- Parameters:
delete
- Metastore delete operation holder- Returns:
- list of RDBMS Metastore delete operations
-
toDeleteAll
List<RdbmsOperation.Delete> toDeleteAll()Creates list of RDBMS Metastore delete operations which will delete all data from corresponding Metastore component tables.- Returns:
- list of RDBMS Metastore delete operations
-