Example #1
0
        public void WriteWordRelation(FSWordRelationship relation)
        {
            CellSet.Row row = TableDomainMappers.WordRelationToRow(relation);
            CellSet     set = new CellSet();

            set.rows.Add(row);
            HadoopContext.HBaseClient.StoreCells(HadoopContext.WordRelationTableName, set);
        }
Example #2
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);
        }
Example #3
0
        public void WriteConversation(FSConversation convo)
        {
            CellSet.Row row = TableDomainMappers.ConversationToRow(convo);
            CellSet     set = new CellSet();

            set.rows.Add(row);
            HadoopContext.HBaseClient.StoreCells(HadoopContext.ConversationTableName, set);
            Thread.Sleep(100);
        }
Example #4
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);
        }
Example #5
0
        public void WriteWordRelations(IEnumerable <FSWordRelationship> relations)
        {
            CellSet set = new CellSet();

            foreach (FSWordRelationship relation in relations)
            {
                set.rows.Add(TableDomainMappers.WordRelationToRow(relation));
            }
            HadoopContext.HBaseClient.StoreCells(HadoopContext.WordRelationTableName, set);
        }