| | |
| | | |
| | | |
| | | import com.zhitan.common.enums.CollectionModes; |
| | | import com.zhitan.common.enums.GroupTimeType; |
| | | import com.zhitan.common.enums.RetrievalModes; |
| | | import com.zhitan.realtimedata.domain.TagValue; |
| | | |
| | | import java.util.Date; |
| | |
| | | CollectionModes collectionModes); |
| | | |
| | | /** |
| | | * 获取测点在一段时间内按照某一时间周期的统计数据. |
| | | * |
| | | * @param tagCodes 测点编号集合 |
| | | * @param beginTime 开始时间 |
| | | * @param endTime 结束时间,包括结束时间 |
| | | * @param modes 统计类型 |
| | | * @param timeType 分组时间周期(分、时、天) |
| | | * @return 测点统计结果 |
| | | */ |
| | | List<TagValue> statistics(String tagCodes, Date beginTime, Date endTime, CollectionModes modes, GroupTimeType timeType); |
| | | |
| | | /** |
| | | * 存储测点的实时数据. |
| | | * |
| | | * @param tagValues 测点实时数据 |
| | |
| | | * @param tagValues 测点历史时刻数据 |
| | | */ |
| | | void insertData(List<TagValue> tagValues); |
| | | |
| | | /** |
| | | * 获取一段时间内测点的历史数据. |
| | | * |
| | | * @param tagCode 测点编号 |
| | | * @param beginTime 开始时间 |
| | | * @param endTime 结束时间 |
| | | * @param retrievalModes 查询数据方式 |
| | | * @param pointCount 测点得到的数据个数 |
| | | * @return 测点历史数据 |
| | | */ |
| | | List<TagValue> retrieve(String tagCode, Date beginTime, Date endTime, |
| | | RetrievalModes retrievalModes, int pointCount); |
| | | } |