streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smashew <...@git.apache.org>
Subject [GitHub] incubator-streams pull request: Twitter Modificaitons
Date Mon, 05 May 2014 23:05:24 GMT
Github user smashew commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/8#discussion_r12304605
  
    --- Diff: streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterTimelineProvider.java
---
    @@ -143,20 +110,12 @@ private void captureTimeline(long currentId) {
                     {
                         statuses = client.getUserTimeline(currentId, paging);
     
    -                    for (Status tStat : statuses)
    -                    {
    -//                        if( provider.start != null &&
    -//                                provider.start.isAfter(new DateTime(tStat.getCreatedAt())))
    -//                        {
    -//                            // they hit the last date we wanted to collect
    -//                            // we can now exit early
    -//                            KeepGoing = false;
    -//                        }
    -                        // emit the record
    -                        String json = DataObjectFactory.getRawJSON(tStat);
    -
    -                        providerQueue.offer(new StreamsDatum(json));
    +                    for (Status tStat : statuses) {
    +                        String json = TwitterObjectFactory.getRawJSON(tStat);
     
    +                        while(!providerQueue.offer(new StreamsDatum(json))) {
    --- End diff --
    
    Switched


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message