countDistinct(x) - JPA CriteriaBuilder's method

Create an aggregate expression applying the count distinct operation.
Parameters:
x - expression representing input value to count distinct operation
Returns:
count distinct expression
Since:
JPA 2.0