TableColumnTagToRowExtractor
Transformer to extract values of tags into in new rows that are appended to the end of the table.
Multiple tag keys can be provided to extract multiple tags (one row is created by tag key).
Example
Let's say you have the following table, the first row does not really exist in the table, it is just to show the tags of the columns.
| Row name | A | B |
|---|---|---|
| Column tags | Gender : M | Gender : F |
| 0 | 1 | 5 |
| 1 | 2 | 6 |
Here is the result of the extraction of the Gender tag.
| Row name | A | B |
|---|---|---|
| Column tags | Gender : M | Gender : F |
| 0 | 1 | 5 |
| 1 | 2 | 6 |
| Gender | M | F |
A new row is created containing the values of the Gender tag.
config_specs: ConfigSpecsinput_name: strinput_specs: InputSpecsmessage_dispatcher: gws_core.core.classes.observer.message_dispatcher.MessageDispatcher | Noneoutput_name: stroutput_specs: OutputSpecsstyle: gws_core.model.typing_style.TypingStyle | NoneConstructor, please do not overwrite this method, use the init method instead Leave the constructor without parameters
This can be overwritten to perform custom check before running task. See doc of CheckBeforeTaskResult for more information
ConfigParamsTaskInputsCheckBeforeTaskResultOverride this method to implement convert method
ResourceConfigParamstypeResourceCreate a temporary directory. This directory will be deleted after the task is run. Output file or folder are moved out of this directory before it is deleted.
strstrtype[gws_core.resource.resource.Resource] | Nonestr | Nonestr | NoneThis can be overwritten to perform custom initialization of the task. This method is called just after the init and before the check_before_run method
strstrstrStore a message in the progress
strMessageLevelstrstrThis must be overiwritten to perform the task of the task.
This is where most of your code must go
ConfigParamsTaskInputsdictThis can be overwritten to perform action after the task run. This method is called after the resources are saved. This method is useful to delete temporary objects (like files) to clear the server after the task is run.
Override this method to write the Transformer code
TableConfigParamsTableUpdate the progress value
floatstrCall the ResourceExporter method manually
ResourcedictResourceReturns the name of the class
bool - Falsebool - Falsebool - FalsestrReturns the full name of the class
bool - Falsebool - FalsestrstrVersionGet the human name of the object
strReturns the input specs of the process
InputSpecsReturns the input specs of the process
OutputSpecsGet the short description of the object
strGet the type of the input source
tupleGet the style of the object
TypingStyleGet the type of the output target
typeGet the typing name of the object Ex: 'RESOURCE.gws_core.Table'
strTypingNameObjGet all the classes that inherit this class
list