Class OutputDataTransformer<T>

java.lang.Object
org.apache.drill.metastore.mongo.transform.OutputDataTransformer<T>
Type Parameters:
T - Metastore component unit type
Direct Known Subclasses:
TablesOutputDataTransformer

public abstract class OutputDataTransformer<T> extends Object
Base class to convert list of Document into Metastore component units for the given list of column names.
  • Constructor Details

  • Method Details

    • columns

      public OutputDataTransformer<T> columns(List<String> columns)
    • documents

      public OutputDataTransformer<T> documents(List<org.bson.Document> documents)
    • execute

      public abstract List<T> execute()
      Converts given list of Document into Metastore component units. Specific for each Metastore component.
      Returns:
      list of Metastore component units
    • valuesToSet

      protected List<Map<MethodHandle,Object>> valuesToSet()
      For each given record prepares specific methods handler and its value to be set into Metastore specific component unit. Ignores absent setters for columns and null values.
      Returns:
      list of methods handlers and values to set