public void WriteTweet(FSTweet tweet) { CellSet.Row row = TableDomainMappers.TweetToRow(tweet); CellSet set = new CellSet(); set.rows.Add(row); HadoopContext.HBaseClient.StoreCells(HadoopContext.TweetTableName, set); }
public void WriteTweets(IEnumerable <FSTweet> tweets) { CellSet set = new CellSet(); foreach (FSTweet t in tweets) { set.rows.Add(TableDomainMappers.TweetToRow(t)); } HadoopContext.HBaseClient.StoreCells(HadoopContext.TweetTableName, set); }