Class DistanceProjectionDefinition.WrappedValued<C>
java.lang.Object
org.hibernate.search.engine.search.projection.definition.spi.AbstractProjectionDefinition<C>
org.hibernate.search.engine.search.projection.definition.spi.DistanceProjectionDefinition<C>
org.hibernate.search.engine.search.projection.definition.spi.DistanceProjectionDefinition.WrappedValued<C>
- All Implemented Interfaces:
ProjectionDefinition<C>, ToStringTreeAppendable
- Enclosing class:
DistanceProjectionDefinition<F>
@Incubating
public static final class DistanceProjectionDefinition.WrappedValued<C>
extends DistanceProjectionDefinition<C>
-
Nested Class Summary
Nested classes/interfaces inherited from class DistanceProjectionDefinition
DistanceProjectionDefinition.MultiValued, DistanceProjectionDefinition.SingleValued, DistanceProjectionDefinition.WrappedValued<C> -
Field Summary
Fields inherited from class DistanceProjectionDefinition
fieldPath, parameterName, unit -
Constructor Summary
ConstructorsConstructorDescriptionWrappedValued(String fieldPath, String parameterName, DistanceUnit unit, ProjectionCollector.Provider<Double, C> collector) -
Method Summary
Modifier and TypeMethodDescriptioncreate(ProjectionDefinitionContext context) Creates a projection with a specific projected type.protected booleanmulti()Methods inherited from class DistanceProjectionDefinition
appendTo, typeMethods inherited from class AbstractProjectionDefinition
toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ProjectionDefinition
createMethods inherited from interface ToStringTreeAppendable
toStringTree
-
Constructor Details
-
WrappedValued
public WrappedValued(String fieldPath, String parameterName, DistanceUnit unit, ProjectionCollector.Provider<Double, C> collector)
-
-
Method Details
-
multi
protected boolean multi()- Specified by:
multiin classDistanceProjectionDefinition<C>
-
create
Description copied from interface:ProjectionDefinitionCreates a projection with a specific projected type.- Parameters:
context- The context in which the definition is applied.- Returns:
- The created
SearchPredicate. - See Also:
-