You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by steveblackmon <gi...@git.apache.org> on 2016/10/05 22:06:56 UTC

[GitHub] incubator-streams pull request #289: level up quality of streams-provider-tw...

GitHub user steveblackmon opened a pull request:

    https://github.com/apache/incubator-streams/pull/289

    level up quality of streams-provider-twitter 

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/steveblackmon/incubator-streams STREAMS-415

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-streams/pull/289.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #289
    
----
commit 9bf8ef9ba566351a855366875f0253059c0473ed
Author: Steve Blackmon @steveblackmon <sb...@apache.org>
Date:   2016-10-04T20:06:14Z

    related to STREAMS-403

commit 0813b11edd535322cbabafd9a91e77136812e8bb
Author: Steve Blackmon @steveblackmon <sb...@apache.org>
Date:   2016-10-04T22:37:06Z

    example of STREAMS-415 using twitter

commit d9e58cdd67020520d592aad621b3aff6a8249537
Author: Steve Blackmon @steveblackmon <sb...@apache.org>
Date:   2016-10-05T01:25:44Z

    employ args to simplify test and provider command line

commit 9495cf52e3d1c5d5100566364bfa30447555682a
Author: Steve Blackmon @steveblackmon <sb...@apache.org>
Date:   2016-10-05T21:41:48Z

    fixes while testing flink examples

----


---
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.
---

[GitHub] incubator-streams issue #289: level up quality of streams-provider-twitter

Posted by steveblackmon <gi...@git.apache.org>.
Github user steveblackmon commented on the issue:

    https://github.com/apache/incubator-streams/pull/289
  
    i will lazy consensus merge this in 24 hours.


---
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.
---

[GitHub] incubator-streams pull request #289: level up quality of streams-provider-tw...

Posted by steveblackmon <gi...@git.apache.org>.
Github user steveblackmon commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/289#discussion_r82089937
  
    --- Diff: streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterTimelineProvider.java ---
    @@ -18,22 +18,39 @@
     
     package org.apache.streams.twitter.provider;
     
    +import com.fasterxml.jackson.core.JsonProcessingException;
    +import com.fasterxml.jackson.databind.ObjectMapper;
     import com.google.common.base.Preconditions;
     import com.google.common.collect.Lists;
     import com.google.common.collect.Queues;
    +import com.google.common.util.concurrent.Uninterruptibles;
    +import com.typesafe.config.Config;
    +import com.typesafe.config.ConfigFactory;
    +import com.typesafe.config.ConfigParseOptions;
     import org.apache.commons.lang.NotImplementedException;
    +import org.apache.streams.config.ComponentConfigurator;
    +import org.apache.streams.config.StreamsConfiguration;
    +import org.apache.streams.config.StreamsConfigurator;
     import org.apache.streams.core.DatumStatusCounter;
     import org.apache.streams.core.StreamsDatum;
     import org.apache.streams.core.StreamsProvider;
     import org.apache.streams.core.StreamsResultSet;
    +import org.apache.streams.jackson.StreamsJacksonMapper;
     import org.apache.streams.twitter.TwitterUserInformationConfiguration;
    +import org.apache.streams.twitter.converter.TwitterDateTimeFormat;
    +import org.apache.streams.twitter.pojo.Tweet;
     import org.apache.streams.util.ComponentUtils;
     import org.joda.time.DateTime;
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
     import twitter4j.*;
    --- End diff --
    
    corrected within streams-provider-twitter for this PR
    opened STREAMS-423 to correct project-wide


---
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.
---

[GitHub] incubator-streams pull request #289: level up quality of streams-provider-tw...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-streams/pull/289


---
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.
---

[GitHub] incubator-streams pull request #289: level up quality of streams-provider-tw...

Posted by smarthi <gi...@git.apache.org>.
Github user smarthi commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/289#discussion_r82084338
  
    --- Diff: streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterTimelineProvider.java ---
    @@ -18,22 +18,39 @@
     
     package org.apache.streams.twitter.provider;
     
    +import com.fasterxml.jackson.core.JsonProcessingException;
    +import com.fasterxml.jackson.databind.ObjectMapper;
     import com.google.common.base.Preconditions;
     import com.google.common.collect.Lists;
     import com.google.common.collect.Queues;
    +import com.google.common.util.concurrent.Uninterruptibles;
    +import com.typesafe.config.Config;
    +import com.typesafe.config.ConfigFactory;
    +import com.typesafe.config.ConfigParseOptions;
     import org.apache.commons.lang.NotImplementedException;
    +import org.apache.streams.config.ComponentConfigurator;
    +import org.apache.streams.config.StreamsConfiguration;
    +import org.apache.streams.config.StreamsConfigurator;
     import org.apache.streams.core.DatumStatusCounter;
     import org.apache.streams.core.StreamsDatum;
     import org.apache.streams.core.StreamsProvider;
     import org.apache.streams.core.StreamsResultSet;
    +import org.apache.streams.jackson.StreamsJacksonMapper;
     import org.apache.streams.twitter.TwitterUserInformationConfiguration;
    +import org.apache.streams.twitter.converter.TwitterDateTimeFormat;
    +import org.apache.streams.twitter.pojo.Tweet;
     import org.apache.streams.util.ComponentUtils;
     import org.joda.time.DateTime;
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
     import twitter4j.*;
    --- End diff --
    
    could u please avoid import *, most apache projects call out the full import


---
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.
---

[GitHub] incubator-streams issue #289: level up quality of streams-provider-twitter

Posted by steveblackmon <gi...@git.apache.org>.
Github user steveblackmon commented on the issue:

    https://github.com/apache/incubator-streams/pull/289
  
    twitter provider upgrades for this release fully implemented in this branch now.



---
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.
---

[GitHub] incubator-streams pull request #289: level up quality of streams-provider-tw...

Posted by smarthi <gi...@git.apache.org>.
Github user smarthi commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/289#discussion_r82084392
  
    --- Diff: streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterTimelineProvider.java ---
    @@ -18,22 +18,39 @@
     
     package org.apache.streams.twitter.provider;
     
    +import com.fasterxml.jackson.core.JsonProcessingException;
    +import com.fasterxml.jackson.databind.ObjectMapper;
     import com.google.common.base.Preconditions;
     import com.google.common.collect.Lists;
     import com.google.common.collect.Queues;
    +import com.google.common.util.concurrent.Uninterruptibles;
    +import com.typesafe.config.Config;
    +import com.typesafe.config.ConfigFactory;
    +import com.typesafe.config.ConfigParseOptions;
     import org.apache.commons.lang.NotImplementedException;
    +import org.apache.streams.config.ComponentConfigurator;
    +import org.apache.streams.config.StreamsConfiguration;
    +import org.apache.streams.config.StreamsConfigurator;
     import org.apache.streams.core.DatumStatusCounter;
     import org.apache.streams.core.StreamsDatum;
     import org.apache.streams.core.StreamsProvider;
     import org.apache.streams.core.StreamsResultSet;
    +import org.apache.streams.jackson.StreamsJacksonMapper;
     import org.apache.streams.twitter.TwitterUserInformationConfiguration;
    +import org.apache.streams.twitter.converter.TwitterDateTimeFormat;
    +import org.apache.streams.twitter.pojo.Tweet;
     import org.apache.streams.util.ComponentUtils;
     import org.joda.time.DateTime;
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
     import twitter4j.*;
     import twitter4j.conf.ConfigurationBuilder;
     
    +import java.io.BufferedOutputStream;
    +import java.io.File;
    +import java.io.FileNotFoundException;
    +import java.io.FileOutputStream;
    +import java.io.PrintStream;
     import java.io.Serializable;
     import java.math.BigInteger;
     import java.util.*;
    --- End diff --
    
    Same as above, please avoid import *


---
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.
---

[GitHub] incubator-streams pull request #289: level up quality of streams-provider-tw...

Posted by steveblackmon <gi...@git.apache.org>.
Github user steveblackmon commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/289#discussion_r82089943
  
    --- Diff: streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterTimelineProvider.java ---
    @@ -18,22 +18,39 @@
     
     package org.apache.streams.twitter.provider;
     
    +import com.fasterxml.jackson.core.JsonProcessingException;
    +import com.fasterxml.jackson.databind.ObjectMapper;
     import com.google.common.base.Preconditions;
     import com.google.common.collect.Lists;
     import com.google.common.collect.Queues;
    +import com.google.common.util.concurrent.Uninterruptibles;
    +import com.typesafe.config.Config;
    +import com.typesafe.config.ConfigFactory;
    +import com.typesafe.config.ConfigParseOptions;
     import org.apache.commons.lang.NotImplementedException;
    +import org.apache.streams.config.ComponentConfigurator;
    +import org.apache.streams.config.StreamsConfiguration;
    +import org.apache.streams.config.StreamsConfigurator;
     import org.apache.streams.core.DatumStatusCounter;
     import org.apache.streams.core.StreamsDatum;
     import org.apache.streams.core.StreamsProvider;
     import org.apache.streams.core.StreamsResultSet;
    +import org.apache.streams.jackson.StreamsJacksonMapper;
     import org.apache.streams.twitter.TwitterUserInformationConfiguration;
    +import org.apache.streams.twitter.converter.TwitterDateTimeFormat;
    +import org.apache.streams.twitter.pojo.Tweet;
     import org.apache.streams.util.ComponentUtils;
     import org.joda.time.DateTime;
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
     import twitter4j.*;
     import twitter4j.conf.ConfigurationBuilder;
     
    +import java.io.BufferedOutputStream;
    +import java.io.File;
    +import java.io.FileNotFoundException;
    +import java.io.FileOutputStream;
    +import java.io.PrintStream;
     import java.io.Serializable;
     import java.math.BigInteger;
     import java.util.*;
    --- End diff --
    
    corrected within streams-provider-twitter for this PR
    opened STREAMS-423 to correct project-wide


---
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.
---