Modifier and Type | Method and Description |
---|---|
SearchPredicateTerminalContext |
ElasticsearchSearchPredicateFactoryContext.fromJsonString(String jsonString) |
Modifier and Type | Method and Description |
---|---|
SearchPredicateTerminalContext |
LuceneSearchPredicateFactoryContext.fromLuceneQuery(Query query) |
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanJunctionPredicateContext
The context used when defining a boolean junction, allowing in particular to add clauses.
|
interface |
MatchAllPredicateContext
The context used when starting to define a match all predicate.
|
interface |
MatchIdPredicateContext
The context used when defining a match on an identifier.
|
interface |
RangePredicateTerminalContext |
Modifier and Type | Method and Description |
---|---|
SearchPredicateTerminalContext |
SearchPredicateFactoryContext.bool(Consumer<? super BooleanJunctionPredicateContext> clauseContributor)
Match documents if they match a combination of boolean clauses,
which will be defined by the given consumer.
|
default SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.boundingBox(double topLeftLatitude,
double topLeftLongitude,
double bottomRightLatitude,
double bottomRightLongitude)
Require at least one of the targeted fields to point to a location within the given box (~rectangle).
|
SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.boundingBox(GeoBoundingBox boundingBox)
Require at least one of the targeted fields to point to a location within the given box (~rectangle).
|
default SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.circle(double latitude,
double longitude,
double radiusInMeters)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
default SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.circle(double latitude,
double longitude,
double radius,
DistanceUnit unit)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
default SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.circle(GeoPoint center,
double radiusInMeters)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.circle(GeoPoint center,
double radius,
DistanceUnit unit)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
SearchPredicateTerminalContext |
RangePredicateTerminalContext.excludeLimit()
Exclude the limit bound from the range.
|
SearchPredicateTerminalContext |
MatchPredicateFieldSetContext.matching(Object value)
Require at least one of the targeted fields to match the given value.
|
SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
Create a context allowing to define the inner predicate,
and apply a consumer to it.
|
SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(SearchPredicate searchPredicate)
Set the inner predicate to a previously-built
SearchPredicate . |
default SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(SearchPredicateTerminalContext terminalContext)
Set the inner predicate to an almost-built
SearchPredicate . |
SearchPredicateTerminalContext |
SearchPredicateFactoryExtensionContext.orElse(Function<SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
If no extension passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchPredicateFactoryContext ;
otherwise return the predicate created in the first succeeding ifSupported call. |
SearchPredicateTerminalContext |
SearchPredicateFactoryExtensionContext.orElseFail()
If no extension passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported so far, throw an exception;
otherwise return the predicate created in the first succeeding ifSupported call. |
SearchPredicateTerminalContext |
SpatialWithinPredicateFieldSetContext.polygon(GeoPolygon polygon)
Require at least one of the targeted fields to point to a location within the given polygon.
|
Modifier and Type | Method and Description |
---|---|
default MatchAllPredicateContext |
MatchAllPredicateContext.except(SearchPredicateTerminalContext terminalContext)
Add a "must not" clause based on an almost-built
SearchPredicate . |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.filter(SearchPredicateTerminalContext terminalContext)
Add a "filter" clause based on an almost-built
SearchPredicate . |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.must(SearchPredicateTerminalContext terminalContext)
Add a "must" clause based on an almost-built
SearchPredicate . |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.mustNot(SearchPredicateTerminalContext terminalContext)
Add a "must not" clause based on an almost-built
SearchPredicate . |
default SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(SearchPredicateTerminalContext terminalContext)
Set the inner predicate to an almost-built
SearchPredicate . |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.should(SearchPredicateTerminalContext terminalContext)
Add a "should" clause based on an almost-built
SearchPredicate . |
Modifier and Type | Method and Description |
---|---|
MatchAllPredicateContext |
MatchAllPredicateContext.except(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.filter(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "filter" clause to be defined by the given function.
|
<T> SearchPredicateFactoryExtensionContext |
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension<T> extension,
Function<T,? extends SearchPredicateTerminalContext> predicateContributor)
If the given extension is supported, and none of the previous extensions passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported, extend the current context with this extension,
apply the given function to the extended context, and store the resulting predicate for later retrieval. |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.must(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must" clause to be defined by the given function.
|
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.mustNot(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
Create a context allowing to define the inner predicate,
and apply a consumer to it.
|
SearchPredicateTerminalContext |
SearchPredicateFactoryExtensionContext.orElse(Function<SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
If no extension passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchPredicateFactoryContext ;
otherwise return the predicate created in the first succeeding ifSupported call. |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.should(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "should" clause to be defined by the given function.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSearchPredicateTerminalContext<B>
An abstract base for
SearchPredicateTerminalContext implementations. |
Modifier and Type | Method and Description |
---|---|
SearchPredicateTerminalContext |
DelegatingSearchPredicateFactoryContext.bool(Consumer<? super BooleanJunctionPredicateContext> clauseContributor) |
Modifier and Type | Method and Description |
---|---|
SearchQueryContext<Q> |
SearchQueryResultContext.predicate(Function<? super SearchPredicateFactoryContext,SearchPredicateTerminalContext> predicateContributor)
Set the predicate for this query.
|
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.