MappingDataFlow Class

public final class MappingDataFlow
extends DataFlow

Mapping data flow.

Constructor Summary

Constructor Description
MappingDataFlow()

Creates an instance of MappingDataFlow class.

Method Summary

Modifier and Type Method and Description
static MappingDataFlow fromJson(JsonReader jsonReader)

Reads an instance of MappingDataFlow from the JsonReader.

String script()

Get the script property: DataFlow script.

List<String> scriptLines()

Get the scriptLines property: Data flow script lines.

List<DataFlowSink> sinks()

Get the sinks property: List of sinks in data flow.

List<DataFlowSource> sources()

Get the sources property: List of sources in data flow.

JsonWriter toJson(JsonWriter jsonWriter)
List<Transformation> transformations()

Get the transformations property: List of transformations in data flow.

String type()

Get the type property: Type of data flow.

void validate()

Validates the instance.

MappingDataFlow withAnnotations(List<Object> annotations)

Set the annotations property: List of tags that can be used for describing the data flow.

MappingDataFlow withDescription(String description)

Set the description property: The description of the data flow.

MappingDataFlow withFolder(DataFlowFolder folder)

Set the folder property: The folder that this data flow is in.

MappingDataFlow withScript(String script)

Set the script property: DataFlow script.

MappingDataFlow withScriptLines(List<String> scriptLines)

Set the scriptLines property: Data flow script lines.

MappingDataFlow withSinks(List<DataFlowSink> sinks)

Set the sinks property: List of sinks in data flow.

MappingDataFlow withSources(List<DataFlowSource> sources)

Set the sources property: List of sources in data flow.

MappingDataFlow withTransformations(List<Transformation> transformations)

Set the transformations property: List of transformations in data flow.

Methods inherited from DataFlow

Methods inherited from java.lang.Object

Constructor Details

MappingDataFlow

public MappingDataFlow()

Creates an instance of MappingDataFlow class.

Method Details

fromJson

public static MappingDataFlow fromJson(JsonReader jsonReader)

Reads an instance of MappingDataFlow from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MappingDataFlow if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MappingDataFlow.

script

public String script()

Get the script property: DataFlow script.

Returns:

the script value.

scriptLines

public List<String> scriptLines()

Get the scriptLines property: Data flow script lines.

Returns:

the scriptLines value.

sinks

public List<DataFlowSink> sinks()

Get the sinks property: List of sinks in data flow.

Returns:

the sinks value.

sources

public List<DataFlowSource> sources()

Get the sources property: List of sources in data flow.

Returns:

the sources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MappingDataFlow.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transformations

public List<Transformation> transformations()

Get the transformations property: List of transformations in data flow.

Returns:

the transformations value.

type

public String type()

Get the type property: Type of data flow.

Overrides:

MappingDataFlow.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

MappingDataFlow.validate()

withAnnotations

public MappingDataFlow withAnnotations(List<Object> annotations)

Set the annotations property: List of tags that can be used for describing the data flow.

Overrides:

MappingDataFlow.withAnnotations(List<Object> annotations)

Parameters:

annotations

withDescription

public MappingDataFlow withDescription(String description)

Set the description property: The description of the data flow.

Overrides:

MappingDataFlow.withDescription(String description)

Parameters:

description

withFolder

public MappingDataFlow withFolder(DataFlowFolder folder)

Set the folder property: The folder that this data flow is in. If not specified, Data flow will appear at the root level.

Overrides:

MappingDataFlow.withFolder(DataFlowFolder folder)

Parameters:

folder

withScript

public MappingDataFlow withScript(String script)

Set the script property: DataFlow script.

Parameters:

script - the script value to set.

Returns:

the MappingDataFlow object itself.

withScriptLines

public MappingDataFlow withScriptLines(List<String> scriptLines)

Set the scriptLines property: Data flow script lines.

Parameters:

scriptLines - the scriptLines value to set.

Returns:

the MappingDataFlow object itself.

withSinks

public MappingDataFlow withSinks(List<DataFlowSink> sinks)

Set the sinks property: List of sinks in data flow.

Parameters:

sinks - the sinks value to set.

Returns:

the MappingDataFlow object itself.

withSources

public MappingDataFlow withSources(List<DataFlowSource> sources)

Set the sources property: List of sources in data flow.

Parameters:

sources - the sources value to set.

Returns:

the MappingDataFlow object itself.

withTransformations

public MappingDataFlow withTransformations(List<Transformation> transformations)

Set the transformations property: List of transformations in data flow.

Parameters:

transformations - the transformations value to set.

Returns:

the MappingDataFlow object itself.

Applies to