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.
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
setexactly 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 callingResultsCompositor.finish(Object).
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.static <P1,V> ProjectionCompositor <Object, V> Deprecated, for removal: This API element is subject to removal in a future version.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.static ProjectionCompositor<Object[], Object[]> fromArray(int size) Deprecated, for removal: This API element is subject to removal in a future version.static <V> ProjectionCompositor<Object[], V> Deprecated, for removal: This API element is subject to removal in a future version.static ProjectionCompositor<Object[], List<?>> fromList(int size) Deprecated, for removal: This API element is subject to removal in a future version.static <V> ProjectionCompositor<Object[], V> Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface org.hibernate.search.engine.search.spi.ResultsCompositor
createInitial, finish, get, set
-
Method Details
-
from
Deprecated, for removal: This API element is subject to removal in a future version. -
from
Deprecated, for removal: This API element is subject to removal in a future version. -
from
static <P1,P2, ProjectionCompositor<Object[],P3, V> 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
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
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.
-
ResultsCompositorinstead.