public void Execute(SCPTuple tuple) { PowerBIClient.Do(api => { var isObjectInsert = api.Insert(datasetId, new Data.WordCount { Word = tuple.GetString(0), Count = tuple.GetInteger(1) }); }); }
public void Execute(SCPTuple tuple) { Context.Logger.Info("Execute enter"); int bytesNum = tuple.GetInteger(0); totalNum += bytesNum; Context.Logger.Info("bytesNum: {0}, totalNum: {1}", bytesNum, totalNum); if (enableAck) { Context.Logger.Info("Ack tuple: tupleId: {0}", tuple.GetTupleId()); this.ctx.Ack(tuple); } Context.Logger.Info("Execute exit"); }
/// <summary> /// The Execute() function will be called, when a new tuple is available. /// </summary> /// <param name="tuple"></param> public void Execute(SCPTuple tuple) { int cnt = tuple.GetInteger(0); this.count += cnt; Context.Logger.Info("CountSum, Execute(), cnt: {0}, this.count: {1}", cnt, this.count); }