Interface ProjectionCompositor<E,V>

Type Parameters:
E - The type of the temporary storage for component values.
V - The type of the final result representing a composed value.
All Superinterfaces:
ResultsCompositor<E,V>

@Deprecated(since="8.1", forRemoval=true) public interface ProjectionCompositor<E,V> extends ResultsCompositor<E,V>
Deprecated, for removal: This API element is subject to removal in a future version.
Use ResultsCompositor instead.
A variation on Collector suitable for composing the result of inner projections in a composite projection.

Compared to Collector:

  • There is no concept of parallel execution.
  • All operations are expected to be non-blocking, except for ResultsCompositor.finish(Object)
  • The number of component values is known in advance, and clients are expected to set exactly that number of values every time.
  • The type of component values is flexible and the values can be mutated before they are composed, but each component values is expected to have a specific type upon calling ResultsCompositor.finish(Object). Clients are responsible for ensuring component values have the required type upon calling ResultsCompositor.finish(Object).
  • Method Details

    • from

      static <P1, V> ProjectionCompositor<Object,V> from(Function<P1,V> transformer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • from

      static <P1, P2, V> ProjectionCompositor<Object[],V> from(BiFunction<P1,P2,V> transformer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • from

      static <P1, P2, P3, V> ProjectionCompositor<Object[],V> from(org.hibernate.search.util.common.function.TriFunction<P1,P2,P3,V> transformer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • fromList

      static ProjectionCompositor<Object[],List<?>> fromList(int size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • fromList

      static <V> ProjectionCompositor<Object[],V> fromList(int size, Function<? super List<?>,? extends V> transformer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • fromArray

      static ProjectionCompositor<Object[],Object[]> fromArray(int size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • fromArray

      static <V> ProjectionCompositor<Object[],V> fromArray(int size, Function<? super Object[],? extends V> transformer)
      Deprecated, for removal: This API element is subject to removal in a future version.