コード例 #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);
        }
コード例 #2
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);
        }