Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/DataflowTemplates
/ types & classes
Types & classes
3,671 in github.com/GoogleCloudPlatform/DataflowTemplates
⨍
Functions
23,218
◇
Types & classes
3,671
↳
Endpoints
7
↓ 62 callers
Class
Expr
A validated, compiled expression callable. Parses a Python expression string, validates it uses only safe constructs, and compiles it into a call
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/safe_eval.py:134
↓ 25 callers
Class
MeasureSpec
A single aggregation measure. Args: field: Input field name to aggregate. agg: The aggregation operator. alias: Output name for this me
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:161
↓ 21 callers
Class
AggregationSpec
Windowed grouped aggregation configuration. Args: window: Window configuration. group_by: Field names for grouping. Empty list means global
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:175
↓ 20 callers
Class
MetricSpec
Complete metric computation specification. Defines how to transform raw row dicts into a single numeric metric value suitable for anomaly detecti
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:189
↓ 14 callers
Class
_FakeReadModifyWriteState
In-memory stand-in for a Beam ReadModifyWriteStateSpec, used to unit-test _RateLimitAlerts without a real pipeline. Matches the contract the DoFn
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:1415
↓ 14 callers
Class
_RateLimitAlerts
Per-key session-window debounce for alerts. ``window_end`` is "now". Fires iff first event for the key OR gap from the prior event ≥ cooldown. ``
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:410
↓ 11 callers
Class
WindowSpec
Window configuration for metric aggregation. Args: type: FIXED or SLIDING window. size_seconds: Window size in seconds. period_seconds:
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:133
↓ 10 callers
Class
_FormatAnomalyAsJson
Renders an anomaly for Pub/Sub as UTF-8 bytes. If ``message_format`` is set, emits ``message_format.format(...)``. Otherwise emits a default JSON
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:337
↓ 10 callers
Class
_SumCombineFn
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:361
↓ 9 callers
Class
_RelativeChangeConfig
Configuration for the RelativeChange detector. At least one of ``threshold_pct`` or ``absolute_threshold`` must be provided. If both are provided
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/relative_change_detector.py:64
↓ 7 callers
Class
ComputeMetric
Transforms raw row dicts into metric beam.Rows for anomaly detection. Takes a ``PCollection[dict]`` with event-time timestamps and produces eithe
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:577
↓ 7 callers
Class
IncSlidingMeanTracker
Incremental sliding window mean tracker. Uses the same algorithm as ``apache_beam.ml.anomaly.univariate.mean.IncSlidingMeanTracker``: maintains
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/relative_change_detector.py:101
↓ 6 callers
Class
_FormatResultForBQ
Converts all AnomalyResult elements to BQ row dicts.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:563
↓ 5 callers
Class
_StreamRestriction
Restriction carrying BQ Storage stream names for cross-worker safety. Unlike a plain OffsetRange(0, N), this restriction is self-contained: each
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:152
↓ 4 callers
Class
BufferState
All mutable per-key state for the timestamp buffer. Stored as a single pickled object in ReadModifyWriteState. All timestamp fields use Beam ``Ti
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/timestamp_buffer.py:79
↓ 3 callers
Class
CopyFilesToGCSDoFn
A DoFn that copies input files to a GCS destination. It skips files that are already on GCS (starting with 'gs://'). It uses a bundle-level ran
python/src/main/python/job-builder-util-transforms/copy_files_to_gcs.py:13
↓ 3 callers
Class
_MapperSidePrecombine
Mapper-side pre-aggregation within each bundle. Mirrors PGBKCVOperation (operations.py) but as a user-level DoFn so Dataflow still sees the downs
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:455
↓ 3 callers
Class
_PostAnomalyToWebhook
POSTs each anomaly to ``webhook_spec.endpoint`` using ADC. String leaves in ``body`` and ``headers`` are format-substituted with ``anomaly fields
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:470
↓ 3 callers
Class
_ThresholdAlert
Emits AnomalyResult(label=1) when ``expression`` is truthy, else label=0. ``value`` is bound to the metric value. The output matches the shape of
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:219
↓ 2 callers
Class
DerivedField
Pre-aggregation column derivation via expression. Args: name: Name of the new field to create. expression: A compiled ``Expr`` callable, e.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:148
↓ 2 callers
Class
FanoutStrategy
Strategy for aggregation parallelism. Applies to both keyed and global. NONE: Plain Combine, no fanout. Relies on combiner lifting for mapper-side
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:111
↓ 2 callers
TypeAlias
MatchIsComputed
MatchIsComputed is a Matcher for tfjson.SchemaAttribute Computed attribute.
cicd/internal/terraform/matcher.go:77
↓ 2 callers
Class
RelativeChangeDoFn
Stateful DoFn that detects relative changes between windows. Subclasses ``TimestampBufferDoFnBag`` for the buffer/timer/trim machinery. Uses the
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/relative_change_detector.py:186
↓ 2 callers
Class
WriteToPubSub
v2/common/src/main/java/com/google/cloud/teleport/v2/auto/blocks/WriteToPubSub.java:29
↓ 2 callers
Class
_NonSplittableOffsetTracker
OffsetRestrictionTracker that allows checkpointing but prevents splitting. Checkpointing (fraction=0) is required for defer_remainder(). All other
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:227
↓ 2 callers
Class
_PreCombineFn
Stage 1 wrapper: extract_output returns the raw accumulator.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:419
↓ 2 callers
Class
_StubResponse
Minimal stand-in for a requests Response used by DoFn tests.
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:897
↓ 2 callers
Class
_StubSession
Captures the most recent request() call for assertions.
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:909
↓ 1 callers
Class
AggOp
Aggregation operator.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:102
↓ 1 callers
Class
BagBufferReader
Buffer reader backed by a materialized BagState.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/timestamp_buffer.py:119
↓ 1 callers
Class
CopyFilesToGCS
A PTransform that copies files to GCS. It takes a PCollection of objects with a `path` attribute and copies non-GCS files to the specified GCS de
python/src/main/python/job-builder-util-transforms/copy_files_to_gcs.py:66
↓ 1 callers
Class
OLSBufferReader
Buffer reader backed by OrderedListState.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/timestamp_buffer.py:139
↓ 1 callers
Class
OffsetKey
Key that pairs an optional grouping key with a window offset. Used to route each sliding-window offset to an independent detector state. Fixed wi
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:116
↓ 1 callers
Class
ReadBigQueryChangeHistory
Streaming source for BigQuery change history. Continuously polls BigQuery APPENDS() or CHANGES() functions and emits changed rows as an unbounded
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:1168
↓ 1 callers
Class
ReadFromPubSub
v2/common/src/main/java/com/google/cloud/teleport/v2/auto/blocks/ReadFromPubSub.java:28
↓ 1 callers
Class
WindowType
Window type for metric aggregation.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:96
↓ 1 callers
Class
WordExtractingDoFn
Parse each line of input text into words.
python/src/main/python/word-count-python/main.py:29
↓ 1 callers
Class
WriteToBigQuery
v2/common/src/main/java/com/google/cloud/teleport/v2/auto/blocks/WriteToBigQuery.java:53
↓ 1 callers
Class
_ApplyMetricExpr
DoFn that evaluates a post-aggregation expression on combined results.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:549
↓ 1 callers
Class
_CDCWatermarkEstimatorProvider
WatermarkEstimatorProvider that initializes the hold from _QueryResult. Uses range_start from the element to set the initial watermark hold. This
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:698
↓ 1 callers
Class
_CleanupTempTablesFn
Stateful DoFn that deletes temp tables after all streams are read. Receives cleanup signals from the Read SDF as: (table_key, (streams_read_cou
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:1102
↓ 1 callers
Class
_DecompressArrowBatchesFn
Decompress and convert raw Arrow batches to timestamped row dicts. Receives individual (schema_bytes, batch_bytes) tuples after Reshuffle and con
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:1065
↓ 1 callers
Class
_DerivedFieldsFn
Callable that evaluates derived field expressions on each row dict. Each derived field's ``expression`` is a compiled ``Expr`` callable. This cla
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:532
↓ 1 callers
Class
_ExecuteQueryFn
Executes a BQ CHANGES/APPENDS query from a _QueryRange instruction.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:571
↓ 1 callers
Class
_FakeBagState
In-memory stand-in for a Beam BagStateSpec. Matches the contract AsyncWrapper expects (``add``, ``clear``, ``read``). Modeled directly on the hel
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:1302
↓ 1 callers
Class
_FakeTimer
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:1328
↓ 1 callers
Class
_LogAnomalyResult
Logs each AnomalyResult at WARNING level for visibility in Dataflow.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:188
↓ 1 callers
Class
_MaxCombineFn
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:389
↓ 1 callers
Class
_MinCombineFn
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:375
↓ 1 callers
Class
_PollChangeHistoryFn
SDF that periodically emits _QueryRange instructions. Uses defer_remainder() for poll timing and _PollWatermarkEstimator to control the watermark
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:404
↓ 1 callers
Class
_PollConfig
Input element for the polling SDF. Only contains start_time (Beam Timestamp), which _PollWatermarkEstimatorProvider uses to initialize the waterm
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:129
↓ 1 callers
Class
_PollWatermarkEstimator
Watermark estimator that tracks both a watermark hold and poll cursor. The watermark hold (reported via current_watermark) is set to start_ts: th
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:241
↓ 1 callers
Class
_PollWatermarkEstimatorProvider
Provider for _PollWatermarkEstimator. Initializes with watermark hold at start_time and poll cursor at start_time (first poll will query from sta
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:292
↓ 1 callers
Class
_PostCombineFn
Stage 2 wrapper: add_input merges an accumulator from Stage 1.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/metric.py:437
↓ 1 callers
Class
_QueryRange
Lightweight instruction emitted by the polling SDF. Contains only the time range to query as Beam Timestamps (int microseconds internally). Stati
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:140
↓ 1 callers
Class
_QueryResult
Bridges the Query step (query execution) to the Read SDF. After _ExecuteQueryFn runs a CHANGES/APPENDS query, it emits a _QueryResult pointing to
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:111
↓ 1 callers
Class
_ReadStorageStreamsSDF
SDF that reads a temp table via BigQuery Storage Read API. Note on SDF lifecycle: the runner decomposes this SDF into three internal wrapper DoFn
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:720
↓ 1 callers
Class
_SequenceSession
Session stub that returns a scripted outcome per request() call. Each entry in ``outcomes`` is either an int HTTP status (returns a ``_StubRespon
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:924
↓ 1 callers
Class
_StreamRestrictionTracker
Tracker for _StreamRestriction, delegating offset logic to OffsetRestrictionTracker.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/cdc.py:192
Class
AbstractJdbcSrcToSpSourceConnector
Abstract class for JDBC source connectors. Handles sharded vs single instance migration.
v2/sourcedb-to-spanner/src/main/java/com/google/cloud/teleport/v2/source/jdbc/AbstractJdbcSrcToSpSourceConnector.java:38
Class
AbstractPipelineLauncher
Abstract class covering the common operations between Classic and Flex templates. <p>Generally, the methods here are the ones that focus more on the
it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/dataflow/AbstractPipelineLauncher.java:60
Class
AbstractPipelineLauncherTest
Unit tests for {@link AbstractPipelineLauncher}.
it/google-cloud-platform/src/test/java/org/apache/beam/it/gcp/dataflow/AbstractPipelineLauncherTest.java:49
Class
AccumulateEntityMapFn
v2/dataplex/src/main/java/com/google/cloud/teleport/v2/transforms/DataplexBigQueryToGcsUpdateMetadata.java:215
Class
AccumulateListFn
{@code AccumulateListFn<InputT, OutputListT>} specifies how to combine a collection of input values of type {@code InputT} to a single list of values
v2/common/src/main/java/com/google/cloud/teleport/v2/transforms/AccumulateListFn.java:44
Class
AccumulateListFnTest
Test class for {@link AccumulateListFn}.
v2/common/src/test/java/com/google/cloud/teleport/v2/transforms/AccumulateListFnTest.java:37
Class
AccumulateValuesFn
v2/common/src/test/java/com/google/cloud/teleport/v2/transforms/AccumulateListFnTest.java:83
Class
AccumulatingTableReader
Helper to {@link ReaderTransform} that expands the Pipeline Graph to flatten all the tableReaders and generate table completions. Please refer to {@li
v2/sourcedb-to-spanner/src/main/java/com/google/cloud/teleport/v2/reader/io/transform/AccumulatingTableReader.java:48
Class
AccumulatingTableReaderTest
Test class for {@link AccumulatingTableReader}.
v2/sourcedb-to-spanner/src/test/java/com/google/cloud/teleport/v2/reader/io/transform/AccumulatingTableReaderTest.java:45
Class
ActionContext
Context for actions.
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/model/job/ActionContext.java:23
Class
ActionDoFnFactory
Factory providing indirection to action handler.
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/actions/ActionDoFnFactory.java:26
Class
ActionFactory
v1/src/main/java/com/google/cloud/teleport/spanner/spannerio/changestreams/action/ActionFactory.java:35
Class
ActionMapper
Helper class for parsing legacy json into {@link Action}. @deprecated use the current JSON format instead
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/model/helpers/ActionMapper.java:40
Class
ActionMapperTest
v2/googlecloud-to-neo4j/src/test/java/com/google/cloud/teleport/v2/neo4j/model/helpers/ActionMapperTest.java:33
Class
ActionPreloadFactory
Factory providing indirection to action handler.
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/actions/ActionPreloadFactory.java:26
Class
ActionProviderExtensions
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/actions/ActionProviderExtensions.java:22
Class
Agent
v2/googlecloud-to-elasticsearch/src/main/java/com/google/cloud/teleport/v2/elasticsearch/transforms/EventMetadataBuilder.java:172
Class
Aggregation
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/transforms/Aggregation.java:20
Class
AggregationPipelineTest
Tests that ComputeMetric + ZScore pipeline produces correct aggregations. For each (agg_type, window_type, keyed) combination, we feed deterministi
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:305
Class
AlwaysFailPolicy
v2/failure-injection-policies/src/main/java/com/google/cloud/teleport/v2/failureinjection/AlwaysFailPolicy.java:21
Class
AlwaysFailPolicyTest
v2/failure-injection-policies/src/test/java/com/google/cloud/teleport/v2/failureinjection/AlwaysFailPolicyTest.java:22
TypeAlias
And
And is a Matcher that applies when all of its containing Matcher instances Match.
cicd/internal/terraform/matcher.go:22
Class
AnomalyIdTest
Tests for _anomaly_id used by AsyncWrapper for per-element dedup.
python/src/test/python/bigquery-anomaly-detection/pipeline_test.py:1237
Class
AnomalyMonitorOptions
Pipeline options for the anomaly monitor.
python/src/main/python/bigquery-anomaly-detection/src/bqmonitor/pipeline.py:590
Class
App
<h3>Configuration</h3> <p>The connector expects configuration to be passed via Properties files. By default, the connector will look for a properties
v2/cdc-parent/cdc-embedded-connector/src/main/java/com/google/cloud/dataflow/cdc/connector/App.java:80
Class
ApplyDDLTransform
A Beam transform that applies the DDL statements passed in a Cloud Spanner database and outputs the original {@link Ddl}.
v1/src/main/java/com/google/cloud/teleport/spanner/ApplyDDLTransform.java:39
Class
ApplyOverridesFn
DoFn to apply schema overrides from a HOCON/JSON config file.
v2/cdc-data-generator/src/main/java/com/google/cloud/teleport/v2/templates/dofn/ApplyOverridesFn.java:37
Class
ApplyOverridesFnTest
v2/cdc-data-generator/src/test/java/com/google/cloud/teleport/v2/templates/dofn/ApplyOverridesFnTest.java:40
Class
ApplyUdfFn
A {@link DoFn} that applies a JavaScript UDF to the document.
v2/mongodb-to-mongodb/src/main/java/com/google/cloud/teleport/v2/transforms/MongoDbTransforms.java:633
Class
ApplyUdfToDataField
v2/datastream-mongodb-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/DataStreamMongoDBToFirestore.java:1534
Class
Array
Generates a <a href=https://avro.apache.org/docs/1.8.2/spec.html#Decimal>Decimal</a> Avro Type.
v2/sourcedb-to-spanner/src/main/java/com/google/cloud/teleport/v2/reader/io/schema/typemapping/provider/unified/Array.java:27
Interface
Artifact
Represents a single artifact. <p>An "artifact" is an entity in object storage, file storage, or block storage. Artifacts should be able to be stored
it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/artifacts/Artifact.java:32
Class
ArtifactAsserts
it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/artifacts/matchers/ArtifactAsserts.java:29
Interface
ArtifactClient
Interface for working with test artifacts. <p>It is the responsibility of implementations to make sure that artifacts are kept separate from each oth
it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/artifacts/ArtifactClient.java:51
Class
ArtifactRegImageSpec
Artifact registry image spec.
plugins/templates-maven-plugin/src/main/java/com/google/cloud/teleport/plugin/maven/PromoteHelper.java:313
Enum
ArtifactType
Type of job flow artifact object.
v2/googlecloud-to-neo4j/src/main/java/com/google/cloud/teleport/v2/neo4j/model/enums/ArtifactType.java:19
Class
ArtifactUtils
Utilities for working with test artifacts.
it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/artifacts/utils/ArtifactUtils.java:33
Class
ArtifactUtilsTest
Artifacts for {@link ArtifactUtils}.
it/google-cloud-platform/src/test/java/org/apache/beam/it/gcp/artifacts/utils/ArtifactUtilsTest.java:28
Class
ArtifactsSubject
Subject that has assertion operations for artifact lists (GCS files), usually coming from the result of a template.
it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/artifacts/matchers/ArtifactsSubject.java:46
Class
AsList
Combines all elements in the {@link PCollection} as list.
v1/src/main/java/com/google/cloud/teleport/spanner/AsList.java:24
Class
AsListTest
Tests for AsList class.
v1/src/test/java/com/google/cloud/teleport/spanner/AsListTest.java:28
next →
1–100 of 3,671, ranked by callers