Interface ExtendedSearchProjectionFactory<S extends ExtendedSearchProjectionFactory<?,R,E>,R,E>

Type Parameters:
S - The self type, i.e. the exposed type of this factory.
All Superinterfaces:
All Known Subinterfaces:
ElasticsearchSearchProjectionFactory<R,E>, LuceneSearchProjectionFactory<R,E>
All Known Implementing Classes:

public interface ExtendedSearchProjectionFactory<S extends ExtendedSearchProjectionFactory<?,R,E>,R,E> extends SearchProjectionFactory<R,E>
A base interface for subtypes of SearchProjectionFactory allowing to easily override the self type for all relevant methods.

Warning: Generic parameters of this type are subject to change, so this type should not be referenced directly in user code.

  • Method Details

    • withRoot

      S withRoot(String objectFieldPath)
      Description copied from interface: SearchProjectionFactory
      Create a new projection factory whose root for all paths passed to the DSL will be the given object field.

      This is used to call reusable methods that can apply the same projection on different object fields that have same structure (same sub-fields).

      Specified by:
      withRoot in interface SearchProjectionFactory<S extends ExtendedSearchProjectionFactory<?,R,E>,R>
      objectFieldPath - The path from the current root to an object field that will become the new root.
      A new projection factory using the given object field as root.