Class ObjectProjectionDefinition.SingleValued<T>
java.lang.Object
org.hibernate.search.engine.search.projection.definition.spi.AbstractProjectionDefinition<P>
org.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition<T,T>
org.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition.SingleValued<T>
- All Implemented Interfaces:
AutoCloseable
,ProjectionDefinition<T>
,ToStringTreeAppendable
- Enclosing class:
- ObjectProjectionDefinition<P,
T>
@Incubating
public static final class ObjectProjectionDefinition.SingleValued<T>
extends ObjectProjectionDefinition<T,T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition
ObjectProjectionDefinition.MultiValued<T>, ObjectProjectionDefinition.SingleValued<T>
-
Field Summary
Fields inherited from class org.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition
delegate, fieldPath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SearchProjectionFactory<?, ?> factory, ProjectionDefinitionContext context) Creates a projection with a specific projected type.protected boolean
multi()
Methods inherited from class org.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition
appendTo, close, type
Methods inherited from class org.hibernate.search.engine.search.projection.definition.spi.AbstractProjectionDefinition
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
Constructor Details
-
SingleValued
-
-
Method Details
-
multi
protected boolean multi()- Specified by:
multi
in classObjectProjectionDefinition<T,
T>
-
create
public SearchProjection<T> create(SearchProjectionFactory<?, ?> factory, ProjectionDefinitionContext context) Description copied from interface:ProjectionDefinition
Creates a projection with a specific projected type.- Parameters:
factory
- A projection factory. If the projection is used in the context of an object field, this factory expects field paths to be provided relative to that same object field. This factory is only valid in the present context and must not be used afterProjectionDefinition.create(SearchProjectionFactory, ProjectionDefinitionContext)
returns.context
- The context in which the definition is applied.- Returns:
- The created
SearchPredicate
. - See Also:
-