java.lang.Object
com.magus.cloud.indicatorcenter.indicator.biz.function.AbstractJCalc
com.magus.cloud.indicatorcenter.indicator.biz.function.BiHour
小时计算函数
-
字段概要
从类继承的字段 com.magus.cloud.indicatorcenter.indicator.biz.function.AbstractJCalc
datasource, formatter, instanceService, paramsHelper, time
-
构造器概要
构造器 -
方法概要
从类继承的方法 com.magus.cloud.indicatorcenter.indicator.biz.function.AbstractJCalc
avgByRange, avgByRange, format_time, getAvgValue, getMaxValue, getMinValue, getValue, getValue, latestValue, maxByRange, maxByRange, minByRange, minByRange, rankAsc, rankDesc, sumByRange, sumByRange, value, value
-
构造器详细资料
-
BiHour
小时计算函数- 参数:
time
- 小时[uuuu-MM-dd HH:mm:ss]dataSource
- 数据源 dw 或 ods
-
-
方法详细资料
-
hour
public int hour()获取当前时间的小时数- 返回:
- 返回当前时间的小时数
-
prevValue
获取几天前的数据- 参数:
instanceCode
- 指标实例编码offset
- 前推的时间量必须大于0useModified
- 是否使用修正值- 返回:
- 返回相对当前时间前几天的数据,如果找不到则返回null
-