Show / Hide Table of Contents

Class QueryPredicate

A query predicate for an aggregation.

Inheritance
System.Object
BooleanExpression
QueryPredicate
Implements
IAggregationPredicate
Inherited Members
BooleanExpression.Expression
BooleanExpression.SplitExpression()
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 Source

QueryPredicate()

Initializes a new instance of the QueryPredicate class.

Declaration
public QueryPredicate()
| Improve this Doc View Source

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 Source

Serialize()

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.

| Improve this Doc View Source

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
BooleanExpression.SplitBinaryExpression(BinaryExpression, Stack<String>)
| Improve this Doc View Source

ValidateAndPushOperand(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.

Overrides
BooleanExpression.ValidateAndPushOperand(Expression, Stack<String>)

Implements

IAggregationPredicate
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX