MCPcopy Index your code
hub / github.com/apache/beam

github.com/apache/beam @jupyterlab-sidepanel-v3.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release jupyterlab-sidepanel-v3.0.0 ↗ · + Follow
107,998 symbols 585,116 edges 7,640 files 25,297 documented · 23% 3 cross-repo links updated todayv2.74.0 · 2026-05-22★ 8,6273,901 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Apache Beam

Apache Beam is a unified model for defining both batch and streaming data-parallel processing pipelines, as well as a set of language-specific SDKs for constructing pipelines and Runners for executing them on distributed processing backends, including Apache Flink, Apache Spark, Google Cloud Dataflow, and Hazelcast Jet.

Status

Maven Version PyPI version Go version Python coverage Build python source distribution and wheels Python tests Java tests Go tests (Jenkins) Java tests (Jenkins) Python tests (Jenkins)

Overview

Beam provides a general approach to expressing embarrassingly parallel data processing pipelines and supports three categories of users, each of which have relatively disparate backgrounds and needs.

  1. End Users: Writing pipelines with an existing SDK, running it on an existing runner. These users want to focus on writing their application logic and have everything else just work.
  2. SDK Writers: Developing a Beam SDK targeted at a specific user community (Java, Python, Scala, Go, R, graphical, etc). These users are language geeks and would prefer to be shielded from all the details of various runners and their implementations.
  3. Runner Writers: Have an execution environment for distributed processing and would like to support programs written against the Beam Model. Would prefer to be shielded from details of multiple SDKs.

The Beam Model

The model behind Beam evolved from several internal Google data processing projects, including MapReduce, FlumeJava, and Millwheel. This model was originally known as the “Dataflow Model”.

To learn more about the Beam Model (though still under the original name of Dataflow), see the World Beyond Batch: Streaming 101 and Streaming 102 posts on O’Reilly’s Radar site, and the VLDB 2015 paper.

The key concepts in the Beam programming model are:

  • PCollection: represents a collection of data, which could be bounded or unbounded in size.
  • PTransform: represents a computation that transforms input PCollections into output PCollections.
  • Pipeline: manages a directed acyclic graph of PTransforms and PCollections that is ready for execution.
  • PipelineRunner: specifies where and how the pipeline should execute.

SDKs

Beam supports multiple language-specific SDKs for writing pipelines against the Beam Model.

Currently, this repository contains SDKs for Java, Python and Go.

Have ideas for new SDKs or DSLs? See the sdk-ideas label.

Runners

Beam supports executing programs on multiple distributed processing backends through PipelineRunners. Currently, the following PipelineRunners are available:

  • The DirectRunner runs the pipeline on your local machine.
  • The DataflowRunner submits the pipeline to the Google Cloud Dataflow.
  • The FlinkRunner runs the pipeline on an Apache Flink cluster. The code has been donated from dataArtisans/flink-dataflow and is now part of Beam.
  • The SparkRunner runs the pipeline on an Apache Spark cluster. The code has been donated from cloudera/spark-dataflow and is now part of Beam.
  • The JetRunner runs the pipeline on a Hazelcast Jet cluster. The code has been donated from hazelcast/hazelcast-jet and is now part of Beam.
  • The Twister2Runner runs the pipeline on a Twister2 cluster. The code has been donated from DSC-SPIDAL/twister2 and is now part of Beam.

Have ideas for new Runners? See the runner-ideas label.

Getting Started

To learn how to write Beam pipelines, read the Quickstart for [Java, Python, or Go] available on our website.

Contact Us

To get involved in Apache Beam:

Instructions for building and testing Beam itself are in the contribution guide.

More Information

Extension points exported contracts — how you extend this code

StageBundleFactory (Interface)
A bundle factory scoped to a particular org.apache.beam.runners.core.construction.graph.ExecutableStage, which h [7 implementers]
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/StageBundleFactory.java
PortablePipelineRunner (Interface)
Runs a portable Beam pipeline on some execution engine. [127 implementers]
runners/java-job-service/src/main/java/org/apache/beam/runners/jobsubmission/PortablePipelineRunner.java
Dataset (Interface)
Holder for Spark RDD/DStream. [6 implementers]
runners/spark/src/main/java/org/apache/beam/runners/spark/translation/Dataset.java
ReadyCheckingSideInputReader (Interface)
A SideInputReader that allows callers to check to see if a PCollectionView has had its contents set in a [26 implementers]
runners/core-java/src/main/java/org/apache/beam/runners/core/ReadyCheckingSideInputReader.java
StreamTransformTranslator (Interface)
Stream TransformTranslator interface. [33 implementers]
runners/twister2/src/main/java/org/apache/beam/runners/twister2/translators/StreamTransformTranslator.java
BeamStoppableFunction (Interface)
Custom StoppableFunction for backward compatibility. @see <a href="https://github.com/apache/flink/commit/e95b347dd [70 …
runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/io/BeamStoppableFunction.java
TransformPayloadTranslatorRegistrar (Interface)
A registrar of TransformPayloadTranslator. [27 implementers]
runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/TransformPayloadTranslatorRegistrar.java
Clock (Interface)
Access to the current time. [14 implementers]
runners/direct-java/src/main/java/org/apache/beam/runners/direct/Clock.java

Core symbols most depended-on inside this repo

build
called by 9542
sdks/java/testing/nexmark/src/main/java/org/apache/beam/sdk/nexmark/NexmarkLauncher.java
of
called by 3807
sdks/java/core/src/main/java/org/apache/beam/sdk/values/KV.java
apply
called by 3805
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Contextful.java
of
called by 2833
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/io/payloads/PayloadSerializer.java
size
called by 2633
sdks/java/extensions/google-cloud-platform-core/src/main/java/org/apache/beam/sdk/extensions/gcp/util/GcsUtil.java
containsInAnyOrder
called by 2563
sdks/java/core/src/main/java/org/apache/beam/sdk/testing/PAssert.java
run
called by 2537
sdks/java/io/common/src/test/java/org/apache/beam/sdk/io/common/IOITHelper.java
equals
called by 2494
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/PrecombineGroupingTable.java

Shape

Method 81,150
Class 14,602
Function 7,777
Struct 1,836
Interface 1,815
Route 406
Enum 263
TypeAlias 124
FuncType 25

Languages

Java64%
Python18%
Go15%
TypeScript3%
Kotlin1%
C++1%

Modules by API surface

sdks/go/pkg/beam/core/runtime/exec/optimized/emitters.go2,029 symbols
sdks/go/pkg/beam/core/runtime/exec/optimized/inputs.go1,017 symbols
sdks/go/pkg/beam/model/pipeline_v1/beam_runner_api.pb.go1,002 symbols
sdks/go/pkg/beam/register/register.go651 symbols
sdks/typescript/src/apache_beam/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.ts649 symbols
sdks/go/pkg/beam/model/fnexecution_v1/beam_fn_api.pb.go563 symbols
sdks/go/pkg/beam/core/runtime/exec/optimized/decoders.go529 symbols
sdks/go/pkg/beam/core/runtime/exec/optimized/encoders.go505 symbols
sdks/java/core/src/test/java/org/apache/beam/sdk/options/PipelineOptionsFactoryTest.java411 symbols
sdks/go/pkg/beam/core/util/reflectx/calls.go405 symbols
sdks/typescript/src/apache_beam/proto/org/apache/beam/model/fn_execution/v1/beam_fn_api.ts398 symbols
sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/ParDoTest.java357 symbols

Datastores touched

(mongodb)Database · 1 repos
(mysql)Database · 1 repos
mydbDatabase · 1 repos
dbnameDatabase · 1 repos

For agents

$ claude mcp add beam \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact