You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beam.apache.org by Mungeol Heo <mu...@gmail.com> on 2018/02/22 01:27:44 UTC

[Scio/Scala API] Casting PCollection to SCollection.

Hello,

I am trying to cast PCollection.to SCollection.
Is there a way to do it? like, SColleciton.internal.
Any help will be great.

Thank you.

Re: [Scio/Scala API] Casting PCollection to SCollection.

Posted by Marián Dvorský <ma...@google.com>.
Try the wrap
<http://spotify.github.io/scio/api/com/spotify/scio/ScioContext.html#wrap[T](p:org.apache.beam.sdk.values.PCollection[T])(implicitevidence$3:scala.reflect.ClassTag[T]):com.spotify.scio.values.SCollection[T]>
method on ScioContext.


On Thu, Feb 22, 2018 at 2:27 AM Mungeol Heo <mu...@gmail.com> wrote:

> Hello,
>
> I am trying to cast PCollection.to SCollection.
> Is there a way to do it? like, SColleciton.internal.
> Any help will be great.
>
> Thank you.
>