Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steeve/cascading.cassandra
Cassandra Tap for Cascading!
https://github.com/steeve/cascading.cassandra
Last synced: 11 days ago
JSON representation
Cassandra Tap for Cascading!
- Host: GitHub
- URL: https://github.com/steeve/cascading.cassandra
- Owner: steeve
- Created: 2011-10-19T23:15:54.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-19T23:29:57.000Z (about 13 years ago)
- Last Synced: 2024-12-22T22:17:18.033Z (15 days ago)
- Homepage:
- Size: 102 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an effort to implement a Cassandra Tap for Cascading.
At the moment, only Source is supported, although the tap does automatic
type detection from the CF metadata.Here's the cascading Wordcount example running on Cassandra:
Tap source = new CassandraTap("127.0.0.1", 9160, "wordcount", "input_words",
new Fields("line", "bible"));Scheme sinkScheme = new TextLine(new Fields("word", "count"));
Tap sink = new StdoutTap();// the 'head' of the pipe assembly
Pipe assembly = new Pipe("wordcount");// For each input Tuple
// parse out each word into a new Tuple with the field name "word"
// regular expressions are optional in Cascading
String regex = "(?