Class DistanceToFieldProjectionOptionsStepImpl<P>
java.lang.Object
org.hibernate.search.engine.search.projection.dsl.impl.DistanceToFieldProjectionOptionsStepImpl<P>
- All Implemented Interfaces:
DistanceToFieldProjectionOptionsStep<DistanceToFieldProjectionOptionsStepImpl<P>,,P> ProjectionFinalStep<P>
- Direct Known Subclasses:
DistanceToFieldProjectionValueStepImpl
public class DistanceToFieldProjectionOptionsStepImpl<P>
extends Object
implements DistanceToFieldProjectionOptionsStep<DistanceToFieldProjectionOptionsStepImpl<P>,P>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreate aSearchProjectioninstance matching the definition given in the previous DSL steps.unit(DistanceUnit unit) Defines the unit of the computed distance (default is meters).
-
Field Details
-
distanceFieldProjectionBuilder
-
-
Method Details
-
unit
Description copied from interface:DistanceToFieldProjectionOptionsStepDefines the unit of the computed distance (default is meters).- Specified by:
unitin interfaceDistanceToFieldProjectionOptionsStep<DistanceToFieldProjectionOptionsStepImpl<P>,P> - Parameters:
unit- The unit.- Returns:
this, for method chaining.
-
toProjection
Description copied from interface:ProjectionFinalStepCreate aSearchProjectioninstance matching the definition given in the previous DSL steps.- Specified by:
toProjectionin interfaceProjectionFinalStep<P>- Returns:
- The
SearchProjectioninstance.
-