Hi Hsieh,

I see.
Thanks for your reply.

From: "Liang-Chi Hsieh"<vii...@gmail.com>
Date: 2017/8/5 17:14:16
To: "dev"<dev@spark.apache.org>;
Subject: Re: the uniqueSource in StreamExecution, where is it be changedplease?

Not sure if you are looking for how the returned value of `getOffset`

I think it depends on how the actual `Source` classes implement it. For
example, in `FileStreamSource`, you can see `getOffset` is updated by
finding new files in the source.

Different source has different way to get its offset.

?????????? wrote
> Hi all,
> These days I am learning the code about the StreamExecution.
> In the method constructNextBatch(about line 365), I found the value of
> latestOffsets changed but I can not find where the s.getOffset of
> uniqueSource is  changed.
> here is the code link:
> https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala
> Would you like help understand it please?
> Thanks.
> Robin

Liang-Chi Hsieh | @viirya 
Spark Technology Center 
View this message in context: 
Sent from the Apache Spark Developers List mailing list archive at Nabble.com.

To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Reply via email to