public interface RangePredicateFieldSetContext extends MultiFieldPredicateFieldSetContext<RangePredicateFieldSetContext>
Modifier and Type | Method and Description |
---|---|
default SearchPredicateTerminalContext |
above(Object value)
Require at least one of the targeted fields to be "higher than or equal to" the given value,
with no limit as to how high it can be.
|
SearchPredicateTerminalContext |
above(Object value,
RangeBoundInclusion inclusion)
Require at least one of the targeted fields to be "higher than" the given value,
with no limit as to how high it can be.
|
default SearchPredicateTerminalContext |
below(Object value)
Require at least one of the targeted fields to be "lower than or equal to" the given value,
with no limit as to how low it can be.
|
SearchPredicateTerminalContext |
below(Object value,
RangeBoundInclusion inclusion)
Require at least one of the targeted fields to be "lower than" the given value,
with no limit as to how low it can be.
|
default RangePredicateFromContext |
from(Object value)
Require at least one of the targeted fields to be "higher than or equal to" the given value,
and "lower than" another value (to be provided in following calls).
|
RangePredicateFromContext |
from(Object value,
RangeBoundInclusion inclusion)
Require at least one of the targeted fields to be "higher than" the given value,
and "lower than" another value (to be provided in following calls).
|
default RangePredicateFieldSetContext |
orField(String absoluteFieldPath)
Target the given field in the range predicate,
as an alternative to the already-targeted fields.
|
RangePredicateFieldSetContext |
orFields(String... absoluteFieldPaths)
Target the given fields in the range predicate,
as an alternative to the already-targeted fields.
|
boostedTo
default RangePredicateFieldSetContext orField(String absoluteFieldPath)
See RangePredicateContext.onField(String)
for more information on targeted fields.
absoluteFieldPath
- The absolute path (from the document root) of the targeted field.this
, for method chaining.RangePredicateContext.onField(String)
RangePredicateFieldSetContext orFields(String... absoluteFieldPaths)
See RangePredicateContext.onFields(String...)
for more information on targeted fields.
absoluteFieldPaths
- The absolute paths (from the document root) of the targeted fields.this
, for method chaining.RangePredicateContext.onFields(String...)
RangePredicateFromContext from(Object value, RangeBoundInclusion inclusion)
This syntax is essentially used like this: .from( lowerBound, ... ).to( upperBound, ... )
.
value
- The lower bound of the range. May be null, in which case the range has no lower bound
and the upper bound (passed to RangePredicateFromContext.to(Object)
) must not be null.
The signature of this method defines this parameter as an Object
,
but a specific type is expected depending on the targeted field.
See there for more information.inclusion
- Whether the lower bound should be included in or excluded from the range.default RangePredicateFromContext from(Object value)
Calling this method is equivalent to calling
.from(value, RangeBoundInclusion.INCLUDED)
value
- The lower bound of the range (included)
(see from(Object, RangeBoundInclusion)
for details about null-ness and type).from(Object, RangeBoundInclusion)
SearchPredicateTerminalContext above(Object value, RangeBoundInclusion inclusion)
value
- The lower bound of the range. Must not be null.
The signature of this method defines this parameter as an Object
,
but a specific type is expected depending on the targeted field.
See there for more information.inclusion
- Whether the lower bound should be included in or excluded from the range.default SearchPredicateTerminalContext above(Object value)
Calling this method is equivalent to calling
.above(value, RangeBoundInclusion.INCLUDED)
value
- The lower bound of the range (included)
(see above(Object, RangeBoundInclusion)
for details about null-ness and type).above(Object, RangeBoundInclusion)
SearchPredicateTerminalContext below(Object value, RangeBoundInclusion inclusion)
value
- The upper bound of the range. Must not be null.
The signature of this method defines this parameter as an Object
,
but a specific type is expected depending on the targeted field.
See there for more information.inclusion
- Whether the upper bound should be included in or excluded from the range.default SearchPredicateTerminalContext below(Object value)
Calling this method is equivalent to calling
.below(value, RangeBoundInclusion.INCLUDED)
value
- The upper bound of the range (included)
(see below(Object, RangeBoundInclusion)
for details about null-ness and type).below(Object, RangeBoundInclusion)
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.