Class QueryPredicate
A query predicate for an aggregation.
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 QueryPredicate : BooleanExpression, IAggregationPredicate
Constructors
| Improve this Doc View SourceQueryPredicate()
Initializes a new instance of the QueryPredicate class.
Declaration
public QueryPredicate()
QueryPredicate(LambdaExpression)
Initializes a new instance of the QueryPredicate class.
Declaration
public QueryPredicate(LambdaExpression exp)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.LambdaExpression | exp | the expression. |
Methods
| Improve this Doc View SourceSerialize()
Serializes the predicate.
Declaration
public IEnumerable<string> Serialize()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | An array of string arguments for an aggregation. |
SplitBinaryExpression(BinaryExpression, Stack<String>)
Splits the binary expression, and pushes it's predicates onto the stack.
Declaration
protected override void SplitBinaryExpression(BinaryExpression expression, Stack<string> stack)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.BinaryExpression | expression | the expression to split. |
System.Collections.Generic.Stack<System.String> | stack | the stack. |
Overrides
| Improve this Doc View SourceValidateAndPushOperand(Expression, Stack<String>)
Validates an operand and pushes it onto the stack.
Declaration
protected override void ValidateAndPushOperand(Expression expression, Stack<string> stack)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | the expression. |
System.Collections.Generic.Stack<System.String> | stack | the stack. |