THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
// Start Ignite node with default configuration. Ignite ignite = Ignition.start(); // Create and start cache with default configuration and name "wordsCache". IgniteCache<String, Integer> cache = ignite.getOrCreateCache("wordsCache"); // Get data streamer reference for cache with name "wordsCache". IgniteDataStreamer<String, Integer> stmr = ignite.dataStreamer("wordsCache"); // Create custom data streamer implementation. CustomStreamer customStmr = new CustomStreamer(stmr, new WordCountTupleExtractor()); // Start custom data streamer if it provides corresponding methods. customStmr.start(); |
...