Interface RangePredicateMatchingStep<N extends RangePredicateOptionsStep<?>>
- Type Parameters:
N- The type of the next step.
- All Superinterfaces:
RangePredicateMatchingGenericStep<Object,N>
- All Known Subinterfaces:
RangePredicateFieldMoreStep<SR,S, N>
public interface RangePredicateMatchingStep<N extends RangePredicateOptionsStep<?>>
extends RangePredicateMatchingGenericStep<Object,N>
The step in a "range" predicate definition where the range to match can be set.
-
Method Summary
Modifier and TypeMethodDescriptiondefault NRequire at least one of the targeted fields to be "greater than or equal to" the given value, with no limit as to how high it can be.default NatLeast(Object lowerBoundValue, ValueConvert convert) Deprecated.default NatLeast(Object lowerBoundValue, ValueModel valueModel) Require at least one of the targeted fields to be "greater than or equal to" the given value, with no limit as to how high it can be.default NRequire at least one of the targeted fields to be "lesser than or equal to" the given value, with no limit as to how low it can be.default NatMost(Object upperBoundValue, ValueConvert convert) Deprecated.UseatMost(Object, ValueModel)instead.default NatMost(Object upperBoundValue, ValueModel valueModel) Require at least one of the targeted fields to be "lesser than or equal to" the given value, with no limit as to how low it can be.default NRequire at least one of the targeted fields to be in the range defined by the given bounds.default Nbetween(Object lowerBoundValue, Object upperBoundValue, ValueConvert convert) Deprecated.Usebetween(Object, Object, ValueModel)instead.default Nbetween(Object lowerBoundValue, Object upperBoundValue, ValueModel valueModel) Require at least one of the targeted fields to be in the range defined by the given bounds.default Nbetween(Object lowerBound, org.hibernate.search.util.common.data.RangeBoundInclusion lowerBoundInclusion, Object upperBound, org.hibernate.search.util.common.data.RangeBoundInclusion upperBoundInclusion) Require at least one of the targeted fields to be in the range defined by the given bounds.default NgreaterThan(Object lowerBoundValue) Require at least one of the targeted fields to be "strictly greater than" the given value, with no limit as to how high it can be.default NgreaterThan(Object lowerBoundValue, ValueConvert convert) Deprecated.UsegreaterThan(Object, ValueModel)instead.default NgreaterThan(Object lowerBoundValue, ValueModel valueModel) Require at least one of the targeted fields to be "strictly greater than" the given value, with no limit as to how high it can be.default NRequire at least one of the targeted fields to be "lesser than" the given value, with no limit as to how low it can be.default NlessThan(Object upperBoundValue, ValueConvert convert) Deprecated.default NlessThan(Object upperBoundValue, ValueModel valueModel) Require at least one of the targeted fields to be "lesser than" the given value, with no limit as to how low it can be.default Nrange(org.hibernate.search.util.common.data.Range<?> range) Deprecated.Usewithin(Range)instead.default Nrange(org.hibernate.search.util.common.data.Range<?> range, ValueConvert convert) Deprecated.default Nwithin(org.hibernate.search.util.common.data.Range<?> range) Require at least one of the targeted fields to be in the given range.default Nwithin(org.hibernate.search.util.common.data.Range<?> range, ValueConvert convert) Deprecated.Usewithin(Range, ValueModel)instead.within(org.hibernate.search.util.common.data.Range<?> range, ValueModel valueModel) Require at least one of the targeted fields to be in the given range.default NwithinAny(Collection<? extends org.hibernate.search.util.common.data.Range<?>> ranges) Require at least one of the targeted fields to be in any of the given ranges.default NwithinAny(Collection<? extends org.hibernate.search.util.common.data.Range<?>> ranges, ValueConvert convert) Deprecated.UsewithinAny(Collection, ValueModel)instead.withinAny(Collection<? extends org.hibernate.search.util.common.data.Range<?>> ranges, ValueModel valueModel) Require at least one of the targeted fields to be in any of the given ranges.default NwithinAny(org.hibernate.search.util.common.data.Range<?>... ranges) Require at least one of the targeted fields to be in any of the given ranges.
-
Method Details
-
between
Require at least one of the targeted fields to be in the range defined by the given bounds.- Specified by:
betweenin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
lowerBound- The lower bound of the range.nullmeans-Infinity(no lower bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.upperBound- The upper bound of the range.nullmeans+Infinity(no upper bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
between
@Deprecated(since="7.2") default N between(Object lowerBoundValue, Object upperBoundValue, ValueConvert convert) Deprecated.Usebetween(Object, Object, ValueModel)instead.Require at least one of the targeted fields to be in the range defined by the given bounds.- Parameters:
lowerBoundValue- The lower bound of the range.nullmeans-Infinity(no lower bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.upperBoundValue- The upper bound of the range.nullmeans+Infinity(no upper bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls how thelowerBoundValue/upperBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
between
Require at least one of the targeted fields to be in the range defined by the given bounds.- Parameters:
lowerBoundValue- The lower bound of the range.nullmeans-Infinity(no lower bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.upperBoundValue- The upper bound of the range.nullmeans+Infinity(no upper bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how thelowerBoundValue/upperBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
between
default N between(Object lowerBound, org.hibernate.search.util.common.data.RangeBoundInclusion lowerBoundInclusion, Object upperBound, org.hibernate.search.util.common.data.RangeBoundInclusion upperBoundInclusion) Require at least one of the targeted fields to be in the range defined by the given bounds.- Specified by:
betweenin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
lowerBound- The lower bound of the range.nullmeans-Infinity(no lower bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.lowerBoundInclusion- Whether the lower bound is included in the range or excluded.upperBound- The upper bound of the range.nullmeans+Infinity(no upper bound). The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.upperBoundInclusion- Whether the upper bound is included in the range or excluded.- Returns:
- The next step.
-
atLeast
Require at least one of the targeted fields to be "greater than or equal to" the given value, with no limit as to how high it can be.- Specified by:
atLeastin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
lowerBoundValue- The lower bound of the range, included. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
atLeast
Deprecated.UseatLeast(Object, ValueModel)instead.Require at least one of the targeted fields to be "greater than or equal to" the given value, with no limit as to how high it can be.- Parameters:
lowerBoundValue- The lower bound of the range, included. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls howlowerBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
atLeast
Require at least one of the targeted fields to be "greater than or equal to" the given value, with no limit as to how high it can be.- Parameters:
lowerBoundValue- The lower bound of the range, included. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how thelowerBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
greaterThan
Require at least one of the targeted fields to be "strictly greater than" the given value, with no limit as to how high it can be.- Specified by:
greaterThanin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
lowerBoundValue- The lower bound of the range, excluded. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
greaterThan
Deprecated.UsegreaterThan(Object, ValueModel)instead.Require at least one of the targeted fields to be "strictly greater than" the given value, with no limit as to how high it can be.- Parameters:
lowerBoundValue- The lower bound of the range, excluded. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls howlowerBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
greaterThan
Require at least one of the targeted fields to be "strictly greater than" the given value, with no limit as to how high it can be.- Parameters:
lowerBoundValue- The lower bound of the range, excluded. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how thelowerBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
atMost
Require at least one of the targeted fields to be "lesser than or equal to" the given value, with no limit as to how low it can be.- Specified by:
atMostin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
upperBoundValue- The upper bound of the range, included. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
atMost
Deprecated.UseatMost(Object, ValueModel)instead.Require at least one of the targeted fields to be "lesser than or equal to" the given value, with no limit as to how low it can be.- Parameters:
upperBoundValue- The upper bound of the range, included. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls howupperBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
atMost
Require at least one of the targeted fields to be "lesser than or equal to" the given value, with no limit as to how low it can be.- Parameters:
upperBoundValue- The upper bound of the range, included. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how theupperBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
lessThan
Require at least one of the targeted fields to be "lesser than" the given value, with no limit as to how low it can be.- Specified by:
lessThanin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
upperBoundValue- The upper bound of the range, excluded. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
lessThan
Deprecated.Require at least one of the targeted fields to be "lesser than" the given value, with no limit as to how low it can be.- Parameters:
upperBoundValue- The upper bound of the range, excluded. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls howupperBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
lessThan
Require at least one of the targeted fields to be "lesser than" the given value, with no limit as to how low it can be.- Parameters:
upperBoundValue- The upper bound of the range, excluded. Must not be null. The signature of this method defines this parameter as anObject, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how theupperBoundValueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
range
Deprecated.Usewithin(Range)instead.Require at least one of the targeted fields to be in the given range.- Parameters:
range- The range to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
range
@Deprecated(since="7.2") default N range(org.hibernate.search.util.common.data.Range<?> range, ValueConvert convert) Deprecated.Require at least one of the targeted fields to be in the given range.- Parameters:
range- The range to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls how the range bounds should be converted before Hibernate Search attempts to interpret them as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
within
Require at least one of the targeted fields to be in the given range.- Specified by:
withinin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
range- The range to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
within
@Deprecated(since="7.2") default N within(org.hibernate.search.util.common.data.Range<?> range, ValueConvert convert) Deprecated.Usewithin(Range, ValueModel)instead.Require at least one of the targeted fields to be in the given range.- Parameters:
range- The range to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls how the range bounds should be converted before Hibernate Search attempts to interpret them as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
within
Require at least one of the targeted fields to be in the given range.- Parameters:
range- The range to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueModelfor more information.valueModel- The model value, determines how the range bounds should be converted before Hibernate Search attempts to interpret them as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
withinAny
Require at least one of the targeted fields to be in any of the given ranges.- Specified by:
withinAnyin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
ranges- The ranges to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
withinAny
Require at least one of the targeted fields to be in any of the given ranges.- Specified by:
withinAnyin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
ranges- The ranges to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field. SeeValueModel.MAPPINGfor more information.- Returns:
- The next step.
-
withinAny
@Deprecated(since="7.2") default N withinAny(Collection<? extends org.hibernate.search.util.common.data.Range<?>> ranges, ValueConvert convert) Deprecated.UsewithinAny(Collection, ValueModel)instead.Require at least one of the targeted fields to be in any of the given ranges.- Parameters:
ranges- The ranges to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field and on theconvertparameter. SeeValueConvertfor more information.convert- Controls how the range bounds should be converted before Hibernate Search attempts to interpret them as a field value. SeeValueConvertfor more information.- Returns:
- The next step.
-
withinAny
N withinAny(Collection<? extends org.hibernate.search.util.common.data.Range<?>> ranges, ValueModel valueModel) Require at least one of the targeted fields to be in any of the given ranges.- Specified by:
withinAnyin interfaceRangePredicateMatchingGenericStep<Object,N extends RangePredicateOptionsStep<?>> - Parameters:
ranges- The ranges to match. The signature of this method defines this parameter as a range with bounds of any type, but a specific type is expected depending on the targeted field and on thevalueModelparameter. SeeValueModelfor more information.valueModel- The model value, determines how the range bounds should be converted before Hibernate Search attempts to interpret them as a field value. SeeValueModelfor more information.- Returns:
- The next step.
-
atLeast(Object, ValueModel)instead.