public static class ProjectionMethodExpression.Distinct extends ProjectionMethodExpression
ProjectionMethodExpression.Avg, ProjectionMethodExpression.Distinct, ProjectionMethodExpression.Max, ProjectionMethodExpression.Min, ProjectionMethodExpression.Property, ProjectionMethodExpression.Sum
Constructor and Description |
---|
Distinct()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodMatchContext matchContext,
QueryModel query)
Apply the projection to the query object.
|
io.micronaut.inject.ast.ClassElement |
getExpectedResultType() |
protected ProjectionMethodExpression |
initProjection(MethodMatchContext matchContext,
java.lang.String remaining)
Initialize the projection, returning null if it cannot be initialized.
|
getRequiredProperties, init, matchProjection
protected ProjectionMethodExpression initProjection(@NonNull MethodMatchContext matchContext, java.lang.String remaining)
ProjectionMethodExpression
initProjection
in class ProjectionMethodExpression
matchContext
- The match contextremaining
- The remaing projection stringpublic void apply(@NonNull MethodMatchContext matchContext, @NonNull QueryModel query)
ProjectionMethodExpression
apply
in class ProjectionMethodExpression
matchContext
- The match context.query
- The query object.@NonNull public io.micronaut.inject.ast.ClassElement getExpectedResultType()
getExpectedResultType
in class ProjectionMethodExpression