Class TablesTransformer
java.lang.Object
org.apache.drill.metastore.rdbms.transform.AbstractTransformer<TableMetadataUnit>
org.apache.drill.metastore.rdbms.components.tables.TablesTransformer
- All Implemented Interfaces:
Transformer<TableMetadataUnit>
Transformer implementation for RDBMS Metastore tables component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TablesTransformer
get()
MetadataMapper<TableMetadataUnit,
? extends org.jooq.Record> toMapper
(MetadataType metadataType) Returns metadata mappers corresponding to the given metadata type.Set<MetadataMapper<TableMetadataUnit,
? extends org.jooq.Record>> toMappers
(Set<MetadataType> metadataTypes) Returns set of metadata mappers corresponding to the given metadata types.toOverwrite
(List<TableMetadataUnit> units) Converts given list of Metastore component metadata units into RDBMS Metastore overwrite operations.Methods inherited from class org.apache.drill.metastore.rdbms.transform.AbstractTransformer
toDelete, toDeleteAll, toOverwrite
-
Constructor Details
-
TablesTransformer
public TablesTransformer()
-
-
Method Details
-
get
-
toMappers
public Set<MetadataMapper<TableMetadataUnit,? extends org.jooq.Record>> toMappers(Set<MetadataType> metadataTypes) Description copied from interface:Transformer
Returns set of metadata mappers corresponding to the given metadata types.- Parameters:
metadataTypes
- set of metadata types- Returns:
- set of metadata mappers
-
toMapper
public MetadataMapper<TableMetadataUnit,? extends org.jooq.Record> toMapper(MetadataType metadataType) Description copied from interface:Transformer
Returns metadata mappers corresponding to the given metadata type.- Parameters:
metadataType
- metadata type- Returns:
- metadata mapper
-
toOverwrite
Description copied from interface:Transformer
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
-