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
Constructors Constructor Description NestedPredicateFieldStepImpl(SearchPredicateDslContext<?> dslContext, SearchPredicateFactory factory)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected SearchPredicatebuild()Deprecated.NestedPredicateOptionsStep<?>nest(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> predicateContributor)Deprecated.Set the inner predicate defined by the given function.NestedPredicateOptionsStep<?>nest(SearchPredicate searchPredicate)Deprecated.Set the inner predicate to a previously-builtSearchPredicate.NestedPredicateNestStep<?>objectField(String fieldPath)Deprecated.Set the object field to "nest" on.-
Methods inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
toPredicate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.NestedPredicateNestStep
nest
-
Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep
toPredicate
-
-
-
-
Constructor Detail
-
NestedPredicateFieldStepImpl
public NestedPredicateFieldStepImpl(SearchPredicateDslContext<?> dslContext, SearchPredicateFactory factory)
Deprecated.
-
-
Method Detail
-
objectField
public NestedPredicateNestStep<?> objectField(String fieldPath)
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
public NestedPredicateOptionsStep<?> nest(SearchPredicate searchPredicate)
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
protected SearchPredicate build()
Deprecated.- Specified by:
buildin classAbstractPredicateFinalStep
-
-