Tabnine Logo
PCollectionViews
Code IndexAdd Tabnine to your IDE (free)

How to use
PCollectionViews
in
org.apache.beam.sdk.values

Best Java code snippets using org.apache.beam.sdk.values.PCollectionViews (Showing top 16 results out of 315)

origin: org.apache.beam/beam-sdks-java-core

/**
 * Returns the side inputs of this {@link Combine}, tagged with the tag of the {@link
 * PCollectionView}. The values of the returned map will be equal to the result of {@link
 * #getSideInputs()}.
 */
@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-runners-core-construction-java

@Parameters(name = "{index}: {0}")
public static Iterable<CreatePCollectionView<?, ?>> data() {
 return ImmutableList.of(
   CreatePCollectionView.of(
     PCollectionViews.singletonView(
       testPCollection,
       testPCollection.getWindowingStrategy(),
       false,
       null,
       StringUtf8Coder.of())),
   CreatePCollectionView.of(
     PCollectionViews.listView(testPCollection, testPCollection.getWindowingStrategy())));
}
origin: org.apache.beam/beam-sdks-java-core

 @Override
 public PCollectionView<List<T>> expand(PCollection<T> input) {
  try {
   GroupByKey.applicableTo(input);
  } catch (IllegalStateException e) {
   throw new IllegalStateException("Unable to create a side-input view from input", e);
  }
  PCollection<KV<Void, T>> materializationInput =
    input.apply(new VoidKeyToMultimapMaterialization<>());
  PCollectionView<List<T>> view =
    PCollectionViews.listView(
      materializationInput, materializationInput.getWindowingStrategy());
  materializationInput.apply(CreatePCollectionView.of(view));
  return view;
 }
}
origin: org.apache.beam/beam-sdks-java-core

@Override
public PCollectionView<OutputT> expand(PCollection<InputT> input) {
 PCollection<OutputT> combined =
   input.apply(Combine.<InputT, OutputT>globally(fn).withoutDefaults().withFanout(fanout));
 PCollection<KV<Void, OutputT>> materializationInput =
   combined.apply(new VoidKeyToMultimapMaterialization<>());
 PCollectionView<OutputT> view =
   PCollectionViews.singletonView(
     materializationInput,
     input.getWindowingStrategy(),
     insertDefault,
     insertDefault ? fn.defaultValue() : null,
     combined.getCoder());
 materializationInput.apply(CreatePCollectionView.of(view));
 return view;
}
origin: org.apache.beam/beam-sdks-java-core

 @Override
 public PCollectionView<Iterable<T>> expand(PCollection<T> input) {
  try {
   GroupByKey.applicableTo(input);
  } catch (IllegalStateException e) {
   throw new IllegalStateException("Unable to create a side-input view from input", e);
  }
  PCollection<KV<Void, T>> materializationInput =
    input.apply(new VoidKeyToMultimapMaterialization<>());
  PCollectionView<Iterable<T>> view =
    PCollectionViews.iterableView(
      materializationInput, materializationInput.getWindowingStrategy());
  materializationInput.apply(CreatePCollectionView.of(view));
  return view;
 }
}
origin: org.apache.beam/beam-sdks-java-core

 @Override
 public PCollectionView<Map<K, Iterable<V>>> expand(PCollection<KV<K, V>> input) {
  try {
   GroupByKey.applicableTo(input);
  } catch (IllegalStateException e) {
   throw new IllegalStateException("Unable to create a side-input view from input", e);
  }
  PCollection<KV<Void, KV<K, V>>> materializationInput =
    input.apply(new VoidKeyToMultimapMaterialization<>());
  PCollectionView<Map<K, Iterable<V>>> view =
    PCollectionViews.multimapView(
      materializationInput, materializationInput.getWindowingStrategy());
  materializationInput.apply(CreatePCollectionView.of(view));
  return view;
 }
}
origin: org.apache.beam/beam-sdks-java-core

 @Override
 public PCollectionView<Map<K, V>> expand(PCollection<KV<K, V>> input) {
  try {
   GroupByKey.applicableTo(input);
  } catch (IllegalStateException e) {
   throw new IllegalStateException("Unable to create a side-input view from input", e);
  }
  PCollection<KV<Void, KV<K, V>>> materializationInput =
    input.apply(new VoidKeyToMultimapMaterialization<>());
  PCollectionView<Map<K, V>> view =
    PCollectionViews.mapView(
      materializationInput, materializationInput.getWindowingStrategy());
  materializationInput.apply(CreatePCollectionView.of(view));
  return view;
 }
}
origin: org.apache.beam/beam-sdks-java-core

/**
 * Returns the side inputs of this {@link Combine}, tagged with the tag of the {@link
 * PCollectionView}. The values of the returned map will be equal to the result of {@link
 * #getSideInputs()}.
 */
@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-sdks-java-core

/**
 * Returns the side inputs of this {@link ParDo}, tagged with the tag of the {@link
 * PCollectionView}. The values of the returned map will be equal to the result of {@link
 * #getSideInputs()}.
 */
@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-sdks-java-core

/**
 * Returns the side inputs of this {@link ParDo}, tagged with the tag of the {@link
 * PCollectionView}. The values of the returned map will be equal to the result of {@link
 * #getSideInputs()}.
 */
@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-runners-core-construction-java

 @Override
 public Map<TupleTag<?>, PValue> getAdditionalInputs() {
  return PCollectionViews.toAdditionalInputs(sideInputs);
 }
}
origin: org.apache.beam/beam-runners-direct-java

@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-runners-direct-java

@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-runners-core-construction-java

@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(sideInputs);
}
origin: org.apache.beam/beam-sdks-java-core

@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(getSideInputs());
}
origin: org.apache.beam/beam-runners-google-cloud-dataflow-java

@Override
public Map<TupleTag<?>, PValue> getAdditionalInputs() {
 return PCollectionViews.toAdditionalInputs(getSideInputs());
}
org.apache.beam.sdk.valuesPCollectionViews

Javadoc

For internal use only; no backwards compatibility guarantees.

Implementations of PCollectionView shared across the SDK.

Most used methods

  • toAdditionalInputs
    Expands a list of PCollectionView into the form needed for PTransform#getAdditionalInputs().
  • listView
    Returns a PCollectionView> capable of processing elements windowed using the provided WindowingStrat
  • singletonView
    Returns a PCollectionView capable of processing elements windowed using the provided WindowingStrate
  • iterableView
    Returns a PCollectionView> capable of processing elements windowed using the provided WindowingStrat
  • mapView
    Returns a PCollectionView> capable of processing elements windowed using the provided WindowingStrat
  • multimapView
    Returns a PCollectionView>> capable of processing elements windowed using the provided WindowingStra

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now