Last active
August 28, 2017 21:07
-
-
Save hishaamn/5ce4df37dd9185d827b2997ce19280d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Sitecore.Analytics.Aggregation.Data.Model; | |
| /// <summary> | |
| /// The content flow value. | |
| /// </summary> | |
| public class ContentFlowValue : DictionaryValue | |
| { | |
| /// <summary> | |
| /// Gets or sets the count. | |
| /// </summary> | |
| public long Count { get; set; } | |
| /// <summary> | |
| /// The reduce. | |
| /// </summary> | |
| /// <param name="left"> | |
| /// The left. | |
| /// </param> | |
| /// <param name="right"> | |
| /// The right. | |
| /// </param> | |
| /// <returns> | |
| /// The <see cref="ContentFlowValue"/>. | |
| /// </returns> | |
| internal static ContentFlowValue Reduce(ContentFlowValue left, ContentFlowValue right) | |
| { | |
| var contentEventValue = new ContentFlowValue | |
| { | |
| Count = left.Count + right.Count | |
| }; | |
| return contentEventValue; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment