Interface NestedPredicateNestStep<N extends NestedPredicateOptionsStep<?>>

Type Parameters:
N - The type of the next step.

@Deprecated public interface NestedPredicateNestStep<N extends NestedPredicateOptionsStep<?>>
Deprecated.
The step in a "nested" predicate definition where the predicate to nest can be set.
  • Method Details

    • nest

      N nest(SearchPredicate searchPredicate)
      Deprecated.
      Set the inner predicate to a previously-built SearchPredicate.

      Matching documents are those for which at least one element of the nested object field matches the inner predicate.

      Parameters:
      searchPredicate - The predicate that must be matched by at least one element of the nested object field.
      Returns:
      The next step.
    • nest

      default N nest(PredicateFinalStep dslFinalStep)
      Deprecated.
      Set the inner predicate to an almost-built SearchPredicate.

      Matching documents are those for which at least one element of the nested object field matches the inner predicate.

      Parameters:
      dslFinalStep - A final step in the predicate DSL allowing the retrieval of a SearchPredicate.
      Returns:
      The next step.
    • nest

      N nest(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> predicateContributor)
      Deprecated.
      Set 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.

      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.