Adds a dropdown menu to select the storage format for a tabular dataset output.
Adds a dropdown menu to select the storage format for a tabular dataset output. I.e., it'll add a dropdown menu with available selections 'TSV', 'Parquet' and 'Avro'.
The operator dialog where you are going to add the dropdown menu.
The default format one wants to use.
The dropdown dialog element.
Adds directory selector box to let the user select the location in HDFS where the results of the operator will be written
Adds directory selector box to let the user select the location in HDFS where the results of the operator will be written
The dialog to which the parameter will be added.
adds a string dialog box to let the user define the name of the file with the output.
adds a string dialog box to let the user define the name of the file with the output.
The dialog to which the parameter will be added.
The default value to be used for the parameter.
Adds -- "outputDirectory": an HDFS directory selector for the location of the output -- "outputName": a StringBox parameter for the name of the output.
Adds -- "outputDirectory": an HDFS directory selector for the location of the output -- "outputName": a StringBox parameter for the name of the output. -- "overwrite": A Boolean parameter asking if the user wants to overwrite old output.
These are the standard parameters to be used when an operator outputs a HDFS dataset.
The default value of the output name will be @operator_name_uuid, which will be replaced at runtime with the actual operator name and uuid concatenated with a underscore, sanitized to make it a valid file name.
The default value for the output name parameter.
A sequence of the dialog elements added.
Get the Hdfs storage format from the parameters object.
Get the Hdfs storage format from the parameters object.
This must contain the format parameter. I.e., the user should've called addHdfsStorageFormatParameter before.
The selected Hdfs storage format.
Concatenates the string values of parameters with keys "outputDirectory" and "outputName" with a file separator.
Concatenates the string values of parameters with keys "outputDirectory" and "outputName" with a file separator.
The output path corresponding to parameters outputDirectory and outputName.
Gets the value of the overwrite parameter, returning true if the String value is "true", false if it is a different value or missing.
Gets the value of the overwrite parameter, returning true if the String value is "true", false if it is a different value or missing.
OperatorParameters instance [containing the overwrite parameter].
Boolean representation of the overwrite parameter.
Get default tabular format attributes to use (e.
Get default tabular format attributes to use (e.g., delimiter, quote information for CSV/TSV). This is useful if one wants to define output formats using default values.
The Hdfs storage format.
Tabular format attributes.
Utility for the standard parameters for use by operators which use HDFS datasets.