本文整理汇总了Java中com.holonplatform.core.query.QueryFunction.Count类的典型用法代码示例。如果您正苦于以下问题:Java Count类的具体用法?Java Count怎么用?Java Count使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Count类属于com.holonplatform.core.query.QueryFunction包,在下文中一共展示了Count类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: count
import com.holonplatform.core.query.QueryFunction.Count; //导入依赖的package包/类
/**
* Build an aggregation {@link FunctionExpression} on this property using the {@link Count} function, which returns
* the count of the values of the property.
* @return A {@link Count} expression on this property, expressed as a {@link Property} to allow inclusion in
* {@link PropertySet} and {@link PropertyBox} structures.
*/
default PathFunctionExpressionProperty<T, Long> count() {
return PathFunctionExpressionProperty.create(Count.create(), this);
}
示例2: count
import com.holonplatform.core.query.QueryFunction.Count; //导入依赖的package包/类
/**
* Create a function expression which represents the {@link Count} aggregation function on given <code>path</code>.
* <p>
* With the <em>count</em> aggregation function, the query expression and projection type is of {@link Long} type.
* </p>
* @param <T> Path type
* @param path Path to which to apply the function
* @return A new {@link PathFunctionExpression}
*/
static <T> PathFunctionExpression<T, Long> count(Path<T> path) {
return PathFunctionExpressionProperty.create(Count.create(), path);
}