Have a look at Broadcasting variables http://spark.apache.org/docs/latest/programming-guide.html#broadcast-variables
Thanks Best Regards On Wed, Sep 10, 2014 at 7:25 PM, Ravi Sharma <raviprincesha...@gmail.com> wrote: > Hi Friends, > > I'm using spark streaming as for kafka consumer. I want to do the CEP by > spark. So as for that I need to store my sequence of events. so that I cant > detect some pattern. > > My question is How can I save my events in java collection temporary , So > that i can detect pattern by *processed(temporary stored) and upcoming > events.* > > > Cheers, > Ravi Sharma >