use of org.apache.beam.runners.twister2.translators.functions.ImpulseSource in project beam by apache.
the class ImpulseTranslatorBatch method translateNode.
@Override
public void translateNode(Impulse transform, Twister2BatchTranslationContext context) {
final TSetEnvironment tsetEnv = context.getEnvironment();
SourceTSet<WindowedValue<byte[]>> sourceTSet = ((BatchTSetEnvironment) tsetEnv).createSource(new ImpulseSource(), 1);
PCollection<byte[]> output = context.getOutput(transform);
context.setOutputDataSet(output, sourceTSet);
}
Aggregations