Example #1
0
 @Override
 public PCollectionView<Map<K, V>> apply(PCollection<KV<K, V>> input) {
   return input.apply(
       CreatePCollectionView.<KV<K, V>, Map<K, V>>of(
           PCollectionViews.mapView(
               input.getPipeline(), input.getWindowingStrategy(), input.getCoder())));
 }
Example #2
0
 @Override
 public PCollectionView<Iterable<T>> apply(PCollection<T> input) {
   return input.apply(
       CreatePCollectionView.<T, Iterable<T>>of(
           PCollectionViews.iterableView(
               input.getPipeline(), input.getWindowingStrategy(), input.getCoder())));
 }
Example #3
0
 @Override
 public PCollectionView<T> apply(PCollection<T> input) {
   return input.apply(
       CreatePCollectionView.<T, T>of(
           PCollectionViews.singletonView(
               input.getPipeline(),
               input.getWindowingStrategy(),
               hasDefault,
               defaultValue,
               input.getCoder())));
 }