Interface ProcessingContext
public interface ProcessingContext
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnById
(String id) Returns the column from the input to a custom step.getColumnFromChooserValues
(String columnChooserId) Convenience method to returns the columns selected by the user.Returns the columns from the input to a custom step.getColumnsByTag
(String tag) Returns the list of input columns by tag.Returns the builder class for output record<T> T
getStepPropertyValue
(String stepPropertyId, Class<T> type, T defaultValue) Convenience method to get arg value when the user option type isDefaultOption
type.getStepSettingFieldValueAsString
(String stepSettingFieldId) Returns the step setting field value as a string based on the step setting field ID specified.boolean
Interactive is a flag that set to `true` when the user views the output of a step on the Data Studio Grid (UI).
-
Method Details
-
getStepPropertyValue
Convenience method to get arg value when the user option type isDefaultOption
type.- Type Parameters:
T
- The type of value the arg would return. e.gStringStepProperty
would returnString
value.- Parameters:
stepPropertyId
- the arg id- Returns:
- The arg value.
-
getColumnFromChooserValues
Convenience method to returns the columns selected by the user. It will return empty list if the column chooser is invalid or the step property is not a column chooser.- Parameters:
columnChooserId
- the column chooser's step property ID- Returns:
- the list of selected
Column
-
getStepSettingFieldValueAsString
Returns the step setting field value as a string based on the step setting field ID specified.- Parameters:
stepSettingFieldId
- ID of the step setting field to be returned- Returns:
- String value of the step setting field
-
isInteractive
boolean isInteractive()Interactive is a flag that set to `true` when the user views the output of a step on the Data Studio Grid (UI). It is set to `false` when running the whole workflow as a Job.- Returns:
true
if the execution is interactive, otherwisefalse
-
getColumns
Returns the columns from the input to a custom step.- Returns:
- List of
InputColumn
to the custom step
-
getColumnById
Returns the column from the input to a custom step. Column is specified by the ID.- Parameters:
id
- ID of column to be returned- Returns:
InputColumn
with specified ID
-
getColumnsByTag
Returns the list of input columns by tag.- Parameters:
tag
- data tag- Returns:
- List of input columns
- Since:
- 2.3.0
-
getOutputBuilder
OutputRecordBuilder getOutputBuilder()Returns the builder class for output record- Returns:
- builder class for output record
-