JPA Method
in javax.persistence.criteria.CriteriaBuilder

Expression<Double> avg(
  Expression<N> x
)


Create an aggregate expression applying the avg operation.
Parameters:
x - expression representing input value to avg operation
Return:
avg expression
Since:
JPA 2.0