Class NestedPredicateFieldStepImpl
java.lang.Object
org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
org.hibernate.search.engine.search.predicate.dsl.impl.NestedPredicateFieldStepImpl
- All Implemented Interfaces:
NestedPredicateFieldStep<NestedPredicateNestStep<?>>,NestedPredicateNestStep<NestedPredicateOptionsStep<?>>,NestedPredicateOptionsStep<NestedPredicateOptionsStep<?>>,PredicateFinalStep
@Deprecated
public final class NestedPredicateFieldStepImpl
extends AbstractPredicateFinalStep
implements NestedPredicateFieldStep<NestedPredicateNestStep<?>>, NestedPredicateNestStep<NestedPredicateOptionsStep<?>>, NestedPredicateOptionsStep<NestedPredicateOptionsStep<?>>
Deprecated.
-
Field Summary
Fields inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
dslContext -
Constructor Summary
ConstructorsConstructorDescriptionNestedPredicateFieldStepImpl(SearchPredicateDslContext<?> dslContext, SearchPredicateFactory factory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchPredicatebuild()Deprecated.nest(Function<? super SearchPredicateFactory, ? extends PredicateFinalStep> predicateContributor) Deprecated.Set the inner predicate defined by the given function.nest(SearchPredicate searchPredicate) Deprecated.Set the inner predicate to a previously-builtSearchPredicate.objectField(String fieldPath) Deprecated.Set the object field to "nest" on.Methods inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
toPredicateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.search.predicate.dsl.NestedPredicateNestStep
nestMethods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep
toPredicate
-
Constructor Details
-
NestedPredicateFieldStepImpl
public NestedPredicateFieldStepImpl(SearchPredicateDslContext<?> dslContext, SearchPredicateFactory factory) Deprecated.
-
-
Method Details
-
objectField
Deprecated.Description copied from interface:NestedPredicateFieldStepSet the object field to "nest" on.The selected field must have a
nested structurein the targeted indexes.- Specified by:
objectFieldin interfaceNestedPredicateFieldStep<NestedPredicateNestStep<?>>- Parameters:
fieldPath- The path to the object field.- Returns:
- The next step.
-
nest
Deprecated.Description copied from interface:NestedPredicateNestStepSet the inner predicate to a previously-builtSearchPredicate.Matching documents are those for which at least one element of the nested object field matches the inner predicate.
- Specified by:
nestin interfaceNestedPredicateNestStep<NestedPredicateOptionsStep<?>>- Parameters:
searchPredicate- The predicate that must be matched by at least one element of the nested object field.- Returns:
- The next step.
-
nest
public NestedPredicateOptionsStep<?> nest(Function<? super SearchPredicateFactory, ? extends PredicateFinalStep> predicateContributor) Deprecated.Description copied from interface:NestedPredicateNestStepSet the inner predicate defined by the given function.Best used with lambda expressions.
Matching documents are those for which at least one element of the nested object field matches the inner predicate.
- Specified by:
nestin interfaceNestedPredicateNestStep<NestedPredicateOptionsStep<?>>- Parameters:
predicateContributor- A function that will use the factory passed in parameter to create a predicate, returning the final step in the predicate DSL. Should generally be a lambda expression.- Returns:
- The next step.
-
build
Deprecated.- Specified by:
buildin classAbstractPredicateFinalStep
-