Flowlet Class

public final class Flowlet
extends DataFlow

Data flow flowlet.

Constructor Summary

Constructor Description
Flowlet()

Creates an instance of Flowlet class.

Method Summary

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

Reads an instance of Flowlet from the JsonReader.

String script()

Get the script property: Flowlet script.

List<String> scriptLines()

Get the scriptLines property: Flowlet script lines.

List<DataFlowSink> sinks()

Get the sinks property: List of sinks in Flowlet.

List<DataFlowSource> sources()

Get the sources property: List of sources in Flowlet.

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

Get the transformations property: List of transformations in Flowlet.

String type()

Get the type property: Type of data flow.

void validate()

Validates the instance.

Flowlet withAnnotations(List<Object> annotations)

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

Flowlet withDescription(String description)

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

Flowlet withFolder(DataFlowFolder folder)

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

Flowlet withScript(String script)

Set the script property: Flowlet script.

Flowlet withScriptLines(List<String> scriptLines)

Set the scriptLines property: Flowlet script lines.

Flowlet withSinks(List<DataFlowSink> sinks)

Set the sinks property: List of sinks in Flowlet.

Flowlet withSources(List<DataFlowSource> sources)

Set the sources property: List of sources in Flowlet.

Flowlet withTransformations(List<Transformation> transformations)

Set the transformations property: List of transformations in Flowlet.

Methods inherited from DataFlow

Methods inherited from java.lang.Object

Constructor Details

Flowlet

public Flowlet()

Creates an instance of Flowlet class.

Method Details

fromJson

public static Flowlet fromJson(JsonReader jsonReader)

Reads an instance of Flowlet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Flowlet 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 Flowlet.

script

public String script()

Get the script property: Flowlet script.

Returns:

the script value.

scriptLines

public List<String> scriptLines()

Get the scriptLines property: Flowlet script lines.

Returns:

the scriptLines value.

sinks

public List<DataFlowSink> sinks()

Get the sinks property: List of sinks in Flowlet.

Returns:

the sinks value.

sources

public List<DataFlowSource> sources()

Get the sources property: List of sources in Flowlet.

Returns:

the sources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

Flowlet.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transformations

public List<Transformation> transformations()

Get the transformations property: List of transformations in Flowlet.

Returns:

the transformations value.

type

public String type()

Get the type property: Type of data flow.

Overrides:

Flowlet.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

Flowlet.validate()

withAnnotations

public Flowlet withAnnotations(List<Object> annotations)

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

Overrides:

Flowlet.withAnnotations(List<Object> annotations)

Parameters:

annotations

withDescription

public Flowlet withDescription(String description)

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

Overrides:

Flowlet.withDescription(String description)

Parameters:

description

withFolder

public Flowlet 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:

Flowlet.withFolder(DataFlowFolder folder)

Parameters:

folder

withScript

public Flowlet withScript(String script)

Set the script property: Flowlet script.

Parameters:

script - the script value to set.

Returns:

the Flowlet object itself.

withScriptLines

public Flowlet withScriptLines(List<String> scriptLines)

Set the scriptLines property: Flowlet script lines.

Parameters:

scriptLines - the scriptLines value to set.

Returns:

the Flowlet object itself.

withSinks

public Flowlet withSinks(List<DataFlowSink> sinks)

Set the sinks property: List of sinks in Flowlet.

Parameters:

sinks - the sinks value to set.

Returns:

the Flowlet object itself.

withSources

public Flowlet withSources(List<DataFlowSource> sources)

Set the sources property: List of sources in Flowlet.

Parameters:

sources - the sources value to set.

Returns:

the Flowlet object itself.

withTransformations

public Flowlet withTransformations(List<Transformation> transformations)

Set the transformations property: List of transformations in Flowlet.

Parameters:

transformations - the transformations value to set.

Returns:

the Flowlet object itself.

Applies to