Created
November 19, 2012 14:08
-
-
Save itaifrenkel/4110832 to your computer and use it in GitHub Desktop.
Archiving processed tweets to Cassandra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<os-archive:archive-container | |
giga-space="gigaSpace" concurrent-consumers="2" batch-size="100" > | |
<os-archive:archive-handler ref="cassandra" /> | |
<os-archive:tx-support tx-manager="transactionManager"/> | |
<os-core:template ref="archiverFilter" /> | |
<os-archive:exception-handler ref="archiverFilter"/> | |
</os-archive:archive-container> | |
<bean id="archiverFilter" class="org.openspaces.bigdata.processor.TweetArchiveFilter" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TweetArchiveFilter implements EventTemplateProvider { | |
public SQLQuery<SpaceDocument> getTemplate() { | |
return new SQLQuery<SpaceDocument>("Tweet", "Processed = ?", true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment