Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }