Class OutputDataTransformer<T>
java.lang.Object
org.apache.drill.metastore.iceberg.transform.OutputDataTransformer<T>
- Type Parameters:
T
- Metastore component unit type
- Direct Known Subclasses:
TablesOutputDataTransformer
Base class to convert list of
Record
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 ofRecord
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
-
columns
-
records
-
execute
Converts given list ofRecord
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
-