Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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 = "(?