Spark Streaming with Scala: is there a way which i can postpone dealing with data to next batch
<p>I am working with Spark-Streaming + Scala, and i have the following scenario:</p>

<p>I need to create a Funnel (which is defined by page-views and clicks).
A click must be connected to a page-view occurred before the click.</p>

<p>The problem might occur, when i get the click event in the batch before, the batch which i get the page-view event.</p>

<p>Is there a way which i can postpone the click event to the next event, and
try to deal with it then ?
Also a TTL is needed in such case, so we can throw the event after several batches.</p>

<p>thanks,
Eran.</p>