Class FirstValueReduction
Get's the first value of a group matching the expression.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Redis.OM.Aggregation.AggregationPredicates
Assembly: Redis.OM.dll
Syntax
public class FirstValueReduction : Reduction, IAggregationPredicate
Constructors
| Improve this Doc View SourceFirstValueReduction(MethodCallExpression)
Initializes a new instance of the FirstValueReduction class.
Declaration
public FirstValueReduction(MethodCallExpression exp)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.MethodCallExpression | exp | The expression. |
Properties
| Improve this Doc View SourceResultName
Gets the alias of the result name when the reduction completes.
Declaration
public override string ResultName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceSerialize()
Serializes the predicate.
Declaration
public override IEnumerable<string> Serialize()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | An array of string arguments for an aggregation. |