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