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 Details

    • toMappers

      Set<MetadataMapper<T,? extends org.jooq.Record>> toMappers(Set<MetadataType> metadataTypes)
      Returns set of metadata mappers corresponding to the given metadata types.
      Parameters:
      metadataTypes - set of metadata types
      Returns:
      set of metadata mappers
    • toMapper

      MetadataMapper<T,? extends org.jooq.Record> toMapper(MetadataType metadataType)
      Returns metadata mappers corresponding to the given metadata type.
      Parameters:
      metadataType - metadata type
      Returns:
      metadata mapper
    • toOverwrite

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

      List<RdbmsOperation.Delete> toDelete(Delete delete)
      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