Github user sjbrunst commented on a diff in the pull request:
https://github.com/apache/spark/pull/1717#discussion_r17972016
--- Diff:
external/twitter/src/main/scala/org/apache/spark/streaming/twitter/TwitterUtils.scala
---
@@ -33,15 +33,38 @@ object TwitterUtils {
* twitter4j.oauth.consumerSecret, twitter4j.oauth.accessToken and
* twitter4j.oauth.accessTokenSecret
* @param filters Set of filter strings to get only those tweets that
match them
+ * @param locations Bounding boxes to get only geotagged tweets within
them. Example:
+ Seq(BoundingBox(-180.0,-90.0,180.0,90.0)) gives any geotagged
tweet. If locations and
+ filters are both nonempty, then any tweet matching either
condition may be returned.
* @param storageLevel Storage level to use for storing the received
objects
*/
def createStream(
ssc: StreamingContext,
twitterAuth: Option[Authorization],
filters: Seq[String] = Nil,
+ locations: Seq[BoundingBox] = Nil,
--- End diff --
It looks like I'm changing the method here, but this whole method is new.
The original one is below.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]