use of org.apache.beam.sdk.values.PInput in project beam by apache.
the class DataflowPipelineJobTest method appliedPTransform.
private AppliedPTransform<?, ?, ?> appliedPTransform(String fullName, PTransform<PInput, POutput> transform, Pipeline p) {
PInput input = mock(PInput.class);
when(input.getPipeline()).thenReturn(p);
return AppliedPTransform.of(fullName, Collections.<TupleTag<?>, PValue>emptyMap(), Collections.<TupleTag<?>, PValue>emptyMap(), transform, p);
}
Aggregations