public class Channels extends Object
Pair
instances emitted by DoFn
into
separate PCollection
instances. A typical motivation for this might
be to separate standard output from error output of a DoFn.Constructor and Description |
---|
Channels() |
Modifier and Type | Method and Description |
---|---|
static <T,U> Pair<PCollection<T>,PCollection<U>> |
split(PCollection<Pair<T,U>> pCollection)
Splits a
PCollection of any Pair of objects into a Pair of
PCollection}, to allow for the output of a DoFn to be handled using
separate channels. |
static <T,U> Pair<PCollection<T>,PCollection<U>> |
split(PCollection<Pair<T,U>> pCollection,
PType<T> firstPType,
PType<U> secondPType)
Splits a
PCollection of any Pair of objects into a Pair of
PCollection}, to allow for the output of a DoFn to be handled using
separate channels. |
public static <T,U> Pair<PCollection<T>,PCollection<U>> split(PCollection<Pair<T,U>> pCollection)
PCollection
of any Pair
of objects into a Pair of
PCollection}, to allow for the output of a DoFn to be handled using
separate channels.pCollection
- The PCollection
to splitpublic static <T,U> Pair<PCollection<T>,PCollection<U>> split(PCollection<Pair<T,U>> pCollection, PType<T> firstPType, PType<U> secondPType)
PCollection
of any Pair
of objects into a Pair of
PCollection}, to allow for the output of a DoFn to be handled using
separate channels.pCollection
- The PCollection
to splitfirstPType
- The PType
for the first collectionsecondPType
- The PType
for the second collectionPair
of PCollection
Copyright © 2016 The Apache Software Foundation. All rights reserved.