当前位置: 首页>>代码示例>>Java>>正文


Java Count类代码示例

本文整理汇总了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);
}
 
开发者ID:holon-platform,项目名称:holon-core,代码行数:10,代码来源:PathProperty.java

示例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);
}
 
开发者ID:holon-platform,项目名称:holon-core,代码行数:13,代码来源:FunctionExpression.java


注:本文中的com.holonplatform.core.query.QueryFunction.Count类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。