Apache Ignite Integrations Documentation

The Apache Ignite Integrations Developer Hub

Welcome to the Apache Ignite Integrations developer hub. You'll find comprehensive guides and documentation to help you start working with Apache Ignite Integrations as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Twitter Streamer

Ignite Twitter Streamer module consumes tweets from Twitter and feeds the transformed key-value pairs <tweetId, text> into an Ignite cache.

To stream data from Twitter into an Ignite cache, you need to:

  1. Import Ignite Twitter Module in Maven Project
    If you are using Maven to manage dependencies of your project, you can add the Twitter module
    dependency like this :

Replace '${ignite.version}' with the actual Ignite version you are interested in.

  1. In your code, set the necessary parameters and start the streamer, like so:
IgniteDataStreamer dataStreamer = ignite.dataStreamer("myCache");

OAuthSettings oAuthSettings = new OAuthSettings("setting1", "setting2", "setting3", "setting4");

TwitterStreamer<Integer, String> streamer = new TwitterStreamer<>(oAuthSettings);

Map<String, String> params = new HashMap<>();
params.put("track", "apache, twitter");
params.put("follow", "3004445758");

streamer.setApiParams(params);// Twitter Streaming API params.
streamer.setEndpointUrl(endpointUrl);// Twitter streaming API endpoint.


Refer to Twitter streaming API documentation for more information on various streaming parameters.

Updated about 9 hours ago

Twitter Streamer

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.