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>

public class TablesTransformer extends AbstractTransformer<TableMetadataUnit>
Transformer implementation for RDBMS Metastore tables component.
  • Constructor Details

    • TablesTransformer

      public TablesTransformer()
  • Method Details

    • get

      public static TablesTransformer 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

      public List<RdbmsOperation.Overwrite> toOverwrite(List<TableMetadataUnit> units)
      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