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); }
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); }