Module spring.data.mongodb
Class ComparisonOperators.ComparisonOperatorFactory
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ComparisonOperators.ComparisonOperatorFactory
- Enclosing class:
- ComparisonOperators
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonOperatorFactory(String fieldReference) Creates newComparisonOperators.ComparisonOperatorFactoryfor given fieldReference.ComparisonOperatorFactory(AggregationExpression expression) Creates newComparisonOperators.ComparisonOperatorFactoryfor givenAggregationExpression. -
Method Summary
Modifier and TypeMethodDescriptionCreates newAggregationExpressionthat compares two values.compareTo(AggregationExpression expression) Creates newAggregationExpressionthat compares two values.compareToValue(Object value) Creates newAggregationExpressionthat compares two values.Creates newAggregationExpressionthat compares two values and returns true when the first value is equal to the value of the referenced field.equalTo(AggregationExpression expression) Creates newAggregationExpressionthat compares two values and returns true when the first value is equal to the expression result.equalToValue(Object value) Creates newAggregationExpressionthat compares two values and returns true when the first value is equal to the given value.greaterThan(String fieldReference) Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than the value of the referenced field.greaterThan(AggregationExpression expression) Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than the expression result.greaterThanEqualTo(String fieldReference) Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than or equivalent to the value of the referenced field.greaterThanEqualTo(AggregationExpression expression) Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than or equivalent to the expression result.greaterThanEqualToValue(Object value) Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than or equivalent to the given value.greaterThanValue(Object value) Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than the given value.Creates newAggregationExpressionthat compares two values and returns true when the first value is less than the value of the referenced field.lessThan(AggregationExpression expression) Creates newAggregationExpressionthat compares two values and returns true when the first value is less than the expression result.lessThanEqualTo(String fieldReference) Creates newAggregationExpressionthat compares two values and returns true when the first value is less than or equivalent to the value of the referenced field.lessThanEqualTo(AggregationExpression expression) Creates newAggregationExpressionthat compares two values and returns true when the first value is less than or equivalent to the expression result.lessThanEqualToValue(Object value) Creates newAggregationExpressionthat compares two values and returns true when the first value is less than or equivalent to the given value.lessThanValue(Object value) Creates newAggregationExpressionthat compares two values and returns true when the first value is less than to the given value.notEqualTo(String fieldReference) Creates newAggregationExpressionthat compares two values and returns true when the values are not equivalent.notEqualTo(AggregationExpression expression) Creates newAggregationExpressionthat compares two values and returns true when the values are not equivalent.notEqualToValue(Object value) Creates newAggregationExpressionthat compares two values and returns true when the values are not equivalent.
-
Constructor Details
-
ComparisonOperatorFactory
Creates newComparisonOperators.ComparisonOperatorFactoryfor given fieldReference.- Parameters:
fieldReference- must not be null.
-
ComparisonOperatorFactory
Creates newComparisonOperators.ComparisonOperatorFactoryfor givenAggregationExpression.- Parameters:
expression- must not be null.
-
-
Method Details
-
compareTo
Creates newAggregationExpressionthat compares two values.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Cmp.
-
compareTo
Creates newAggregationExpressionthat compares two values.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Cmp.
-
compareToValue
Creates newAggregationExpressionthat compares two values.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Cmp.
-
equalTo
Creates newAggregationExpressionthat compares two values and returns true when the first value is equal to the value of the referenced field.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Eq.
-
equalTo
Creates newAggregationExpressionthat compares two values and returns true when the first value is equal to the expression result.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Eq.
-
equalToValue
Creates newAggregationExpressionthat compares two values and returns true when the first value is equal to the given value.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Eq.
-
greaterThan
Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than the value of the referenced field.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Gt.
-
greaterThan
Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than the expression result.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Gt.
-
greaterThanValue
Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than the given value.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Gt.
-
greaterThanEqualTo
Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than or equivalent to the value of the referenced field.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Gte.
-
greaterThanEqualTo
Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than or equivalent to the expression result.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Gte.
-
greaterThanEqualToValue
Creates newAggregationExpressionthat compares two values and returns true when the first value is greater than or equivalent to the given value.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Gte.
-
lessThan
Creates newAggregationExpressionthat compares two values and returns true when the first value is less than the value of the referenced field.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Lt.
-
lessThan
Creates newAggregationExpressionthat compares two values and returns true when the first value is less than the expression result.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Lt.
-
lessThanValue
Creates newAggregationExpressionthat compares two values and returns true when the first value is less than to the given value.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Lt.
-
lessThanEqualTo
Creates newAggregationExpressionthat compares two values and returns true when the first value is less than or equivalent to the value of the referenced field.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Lte.
-
lessThanEqualTo
Creates newAggregationExpressionthat compares two values and returns true when the first value is less than or equivalent to the expression result.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Lte.
-
lessThanEqualToValue
Creates newAggregationExpressionthat compares two values and returns true when the first value is less than or equivalent to the given value.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Lte.
-
notEqualTo
Creates newAggregationExpressionthat compares two values and returns true when the values are not equivalent.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ComparisonOperators.Ne.
-
notEqualTo
Creates newAggregationExpressionthat compares two values and returns true when the values are not equivalent.- Parameters:
expression- must not be null.- Returns:
- new instance of
ComparisonOperators.Ne.
-
notEqualToValue
Creates newAggregationExpressionthat compares two values and returns true when the values are not equivalent.- Parameters:
value- must not be null.- Returns:
- new instance of
ComparisonOperators.Ne.
-