public class TranslationContext
extends java.lang.Object
TransformTranslator
s.Constructor and Description |
---|
TranslationContext(io.gearpump.streaming.dsl.javaapi.JavaStreamApp streamApp,
GearpumpPipelineOptions pipelineOptions) |
Modifier and Type | Method and Description |
---|---|
org.apache.beam.sdk.runners.AppliedPTransform<?,?,?> |
getCurrentTransform() |
PValue |
getInput() |
java.util.Map<TupleTag<?>,PValue> |
getInputs() |
<InputT> io.gearpump.streaming.dsl.javaapi.JavaStream<InputT> |
getInputStream(PValue input) |
PValue |
getOutput() |
java.util.Map<TupleTag<?>,PValue> |
getOutputs() |
GearpumpPipelineOptions |
getPipelineOptions() |
<T> io.gearpump.streaming.dsl.javaapi.JavaStream<T> |
getSourceStream(io.gearpump.streaming.source.DataSource dataSource) |
void |
setCurrentTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node treeNode,
Pipeline pipeline) |
<OutputT> void |
setOutputStream(PValue output,
io.gearpump.streaming.dsl.javaapi.JavaStream<OutputT> outputStream) |
public TranslationContext(io.gearpump.streaming.dsl.javaapi.JavaStreamApp streamApp, GearpumpPipelineOptions pipelineOptions)
public void setCurrentTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node treeNode, Pipeline pipeline)
public GearpumpPipelineOptions getPipelineOptions()
public <InputT> io.gearpump.streaming.dsl.javaapi.JavaStream<InputT> getInputStream(PValue input)
public <OutputT> void setOutputStream(PValue output, io.gearpump.streaming.dsl.javaapi.JavaStream<OutputT> outputStream)
public PValue getInput()
public PValue getOutput()
public org.apache.beam.sdk.runners.AppliedPTransform<?,?,?> getCurrentTransform()
public <T> io.gearpump.streaming.dsl.javaapi.JavaStream<T> getSourceStream(io.gearpump.streaming.source.DataSource dataSource)