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

public abstract class AbstractTransformer<T> extends Object implements Transformer<T>
Abstract implementation of Transformer interface which contains common code for all Metastore component metadata types.
  • Constructor Details

    • AbstractTransformer

      public AbstractTransformer()
  • Method Details

    • toDelete

      public List<RdbmsOperation.Delete> toDelete(Delete delete)
      Description copied from interface: Transformer
      Converts Metastore delete operation holder into list of RDBMS Metastore delete operations.
      Specified by:
      toDelete in interface Transformer<T>
      Parameters:
      delete - Metastore delete operation holder
      Returns:
      list of RDBMS Metastore delete operations
    • toDeleteAll

      public List<RdbmsOperation.Delete> 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 interface Transformer<T>
      Returns:
      list of RDBMS Metastore delete operations
    • toOverwrite

      protected RdbmsOperation.Overwrite toOverwrite(String metadataTypeString, List<T> units)