public static class ProjectionMethodExpression.Avg extends ProjectionMethodExpression.Property
ProjectionMethodExpression.Avg, ProjectionMethodExpression.Distinct, ProjectionMethodExpression.Max, ProjectionMethodExpression.Min, ProjectionMethodExpression.Property, ProjectionMethodExpression.Sum
Constructor and Description |
---|
Avg() |
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodMatchContext matchContext,
QueryModel query)
Apply the projection to the query object.
|
protected io.micronaut.inject.ast.ClassElement |
resolveExpectedType(MethodMatchContext matchContext,
io.micronaut.inject.ast.ClassElement classElement)
Resolve the expected type for the projection.
|
getExpectedResultType, getName, initProjection
getRequiredProperties, init, matchProjection
public void apply(@NonNull MethodMatchContext matchContext, @NonNull QueryModel query)
ProjectionMethodExpression
apply
in class ProjectionMethodExpression.Property
matchContext
- The match context.query
- The query object.protected io.micronaut.inject.ast.ClassElement resolveExpectedType(@NonNull MethodMatchContext matchContext, @NonNull io.micronaut.inject.ast.ClassElement classElement)
ProjectionMethodExpression.Property
resolveExpectedType
in class ProjectionMethodExpression.Property
matchContext
- The match contextclassElement
- The class element