Package org.openspaces.bigdata.processor.events

Examples of org.openspaces.bigdata.processor.events.TokenizedTweet


        log.info("parsing tweet " + tweet);

        Long id = (Long) tweet.getProperty("Id");
        String text = tweet.getProperty("Text");
        if (text != null) {
            gigaSpace.write(new TokenizedTweet(id, tokenize(text)));
        }

        tweet.setProperty("Processed", true);
        return tweet;
    }
View Full Code Here


     *
     * @return template for the event container
     */
    @EventTemplate
    TokenizedTweet tokenizedNonFilteredTweet() {
        TokenizedTweet template = new TokenizedTweet();
        template.setFiltered(false);
        return template;
    }
View Full Code Here

     *
     * @return template for the event container
     */
    @EventTemplate
    TokenizedTweet tokenizedFilteredTweet() {
        TokenizedTweet template = new TokenizedTweet();
        template.setFiltered(true);
        return template;
    }
View Full Code Here

TOP

Related Classes of org.openspaces.bigdata.processor.events.TokenizedTweet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.