Liking cljdoc? Tell your friends :D

clj-headlights.pipeline


apply-to-value-and-outputclj

(apply-to-value-and-output context value _window state clj-call)
source

apply-to-value-and-output-kvclj

(apply-to-value-and-output-kv context value _window state clj-call)
source

apply-to-value-and-output-with-timestampclj

(apply-to-value-and-output-with-timestamp context value _window state clj-call)
source

apply-to-value-and-seq-outputsclj

(apply-to-value-and-seq-outputs context value _window state clj-call)
source

apply-to-value-and-seq-outputs-kvclj

(apply-to-value-and-seq-outputs-kv context value _window state clj-call)
source

co-group-by-keyclj

(co-group-by-key pcolls name)

Inputs: [pcolls :- (s/cond-pre PCollection [PCollection]) name :- s/Str] Returns: PCollection

Takes a list of PCollections which are already in KV form, and joins them on their keys. Output pcollection will look like: [key [first-pcoll-vals second-pcoll-vals third-pcoll-vals &c]]

Inputs: [pcolls :- (s/cond-pre PCollection [PCollection]) name :- s/Str]
Returns: PCollection

Takes a list of PCollections which are already in KV form, and joins them on their keys.
Output pcollection will look like: [key [first-pcoll-vals second-pcoll-vals third-pcoll-vals &c]]
sourceraw docstring

compositeclj

(composite name inputs f)

Inputs: [name :- s/Str inputs :- [pcollections/PCollectionType] f :- IFn]

Nests transforms that happen in f into a composite transform

Inputs: [name :- s/Str inputs :- [pcollections/PCollectionType] f :- IFn]

Nests transforms that happen in f into a composite transform
sourceraw docstring

context->msclj

(context->ms c)
source

createclj

(create options)

Inputs: [options :- PipelineOptions] Returns: Pipeline

Create a Pipeline object. This is the first building block of any Beam pipeline.

Inputs: [options :- PipelineOptions]
Returns: Pipeline

Create a Pipeline object. This is the first building block of any Beam pipeline.
sourceraw docstring

df-apply-dofnclj

(df-apply-dofn pcoll name clj-call)

Inputs: [pcoll name clj-call]

Inputs: [pcoll name clj-call]
sourceraw docstring

df-filterclj

(df-filter pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall] Returns: PCollection

Returns a PCollection containing the elements of pcoll where (f element) is truthy

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]
Returns: PCollection

Returns a `PCollection` containing the elements of `pcoll` where `(f element)` is truthy
sourceraw docstring

df-filter-kvclj

(df-filter-kv pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall] Returns: PCollection

returns a PCollection containing the elements of pcoll where (f element) is true. coerces to KV

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]
Returns: PCollection

returns a `PCollection` containing the elements of `pcoll` where `(f element)` is true. coerces to KV
sourceraw docstring

df-mapclj

(df-map pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall] Returns: PCollection

Returns a PCollection of the return values of function clj-call being applied to the input pcoll - used for strictly 1-to-1 transformations

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]
Returns: PCollection

Returns a `PCollection` of the return values of function `clj-call` being applied to the
input `pcoll` - used for strictly 1-to-1 transformations
sourceraw docstring

df-map-cat-with-side-outputsclj

(df-map-cat-with-side-outputs pcoll name clj-call tags)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall tags :- [s/Keyword]] Returns: PCollectionTuple

Acts like a map-cat but returns a PCollectionTuple partitioned by the tag of the outputs of f. f must return a sequence of tuples in the form [:tag value]. The main output should use the tag :main. Nil values are filtered out

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall tags :- [s/Keyword]]
Returns: PCollectionTuple

Acts like a map-cat but returns a `PCollectionTuple` partitioned by the tag of the
outputs of `f`. `f` must return a sequence of tuples in the form `[:tag value]`.
The main output should use the tag `:main`. Nil values are filtered out
sourceraw docstring

df-map-kvclj

(df-map-kv pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]

Same as df-map but expects the output of f to be a sequence of length 2 which is converted to a Dataflow KV object. Mostly used before a GroupBy

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]

Same as df-map but expects the output of `f` to be a sequence of length 2 which is converted
to a Dataflow KV object. Mostly used before a `GroupBy`
sourceraw docstring

df-map-with-side-inputclj

(df-map-with-side-input pcoll name side-input-view clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str side-input-view clj-call :- clj-fn-call/CljCall] Returns: PCollection

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str side-input-view clj-call :- clj-fn-call/CljCall]
Returns: PCollection
sourceraw docstring

df-map-with-timestampclj

(df-map-with-timestamp pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]

Assigns a timestamp to pcoll rows

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]

Assigns a timestamp to pcoll rows
sourceraw docstring

df-mapcatclj

(df-mapcat pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall] Returns: PCollection

Similar to df-map but the return-values of f are flattened in the output PCollection - used when the transformation is not strictly 1-to-1

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]
Returns: PCollection

Similar to `df-map` but the return-values of `f` are flattened in the output
`PCollection` - used when the transformation is not strictly 1-to-1
sourceraw docstring

df-mapcat-kvclj

(df-mapcat-kv pcoll name clj-call)

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]

Same as df-map-kv except f returns a sequence of lenght-2-sequences to be flattened and converted into KV objects

Inputs: [pcoll :- pcollections/PCollectionType name :- s/Str clj-call :- clj-fn-call/CljCall]

Same as `df-map-kv` except `f` returns a sequence of lenght-2-sequences to be flattened
and converted into KV objects
sourceraw docstring

filtererclj

(filterer context value _window state clj-call)
source

filterer-kvclj

(filterer-kv context value _window state clj-call)
source

flatten-pcollectionsclj

(flatten-pcollections pcolls name)

Inputs: [pcolls :- [PCollection] name :- s/Str] Returns: PCollection

Merge a list of pcolls.

Inputs: [pcolls :- [PCollection] name :- s/Str]
Returns: PCollection

Merge a list of pcolls.
sourceraw docstring

get-side-outputclj

source

get-side-outputsclj

source

group-by-keyclj

(group-by-key pcoll name)

Inputs: [pcoll :- PCollection name :- s/Str] Returns: PCollection

Inputs: [pcoll :- PCollection name :- s/Str]
Returns: PCollection
sourceraw docstring

make-pipeline-optionsclj

(make-pipeline-options)

Inputs: [] Returns: PipelineOptions

Create a PipelineOptions object.

Inputs: []
Returns: PipelineOptions

Create a PipelineOptions object.
sourceraw docstring

output-is-kvclj

(output-is-kv pcoll)
source

process-pcollclj

(process-pcoll pcoll name wrapping-call clj-call)
source

process-pcoll-kvclj

(process-pcoll-kv pcoll name wrapping-call clj-call)
source

side-output-function-wrapperclj

(side-output-function-wrapper context val _window state clj-call)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close