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
Base class to convert list of
Document
into Metastore component units for the given list of column names.-
Constructor Summary
ModifierConstructorDescriptionprotected
OutputDataTransformer
(Map<String, MethodHandle> unitSetters) -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Converts given list ofDocument
into Metastore component units.protected List<Map<MethodHandle,
Object>> For each given record prepares specific methods handler and its value to be set into Metastore specific component unit.
-
Constructor Details
-
OutputDataTransformer
-
-
Method Details
-
columns
-
documents
-
execute
Converts given list ofDocument
into Metastore component units. Specific for each Metastore component.- Returns:
- list of Metastore component units
-
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
-