Source - ElaraSourceBuilder
Source.ElaraSourceBuilderA helper class to build a Elara source that fetches data from another workspace in the same tenant.
Example
// Create a datastream which whose value comes from the output of pipeline `my_pipeline` in another workspace called `my_other_workspace`.
export default new SourceBuilder("Elara")
.elara({
workspace: "my_other_workspace",
stream: "Pipeline.my_pipeline",
type: IntegerType,
})
.toTemplate()
Type parameters
Name | Type |
---|---|
T | extends EastType |
Hierarchy
-
Builder
↳
ElaraSourceBuilder
Source
outputStream
▸ outputStream():
Stream
Return the
Stream containing the patched output.Returns
Stream
Example
// Return a datastream which whose value comes from the output of pipeline `my_pipeline` in another workspace called `my_other_workspace`.
export default new SourceBuilder("Elara")
.elara({
workspace: "my_other_workspace",
stream: "Pipeline.my_pipeline",
type: IntegerType,
})
.outputStream()
___
### toTask
▸ **toTask**(): `ElaraSourceTaskDescription`
Return a TaskDescriptions built by this builder.
#### Returns
`ElaraSourceTaskDescription`
**`Example`**
```typescript
// Create a datastream which whose value comes from the output of pipeline `my_pipeline` in another workspace called `my_other_workspace`.
export default new SourceBuilder("Elara")
.elara({
workspace: "my_other_workspace",
stream: "Pipeline.my_pipeline",
type: IntegerType,
})
.toTask()
toTemplate
▸ toTemplate():
Template
Return a
Template fragment containing the Streams and TaskDescriptions built by this builder.Returns
Template
Example
// Create a datastream which whose value comes from the output of pipeline `my_pipeline` in another workspace called `my_other_workspace`.
export default new SourceBuilder("Elara")
.elara({
workspace: "my_other_workspace",
stream: "Pipeline.my_pipeline",
type: IntegerType,
})
.toTemplate()
Overrides
Builder.toTemplate