All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.frameworkset.tran.metrics.entity.MapData Maven / Gradle / Ivy

Go to download

bboss etl,datastream,elasticsearch client with restful and java api without elasticsearch jar dependended.

There is a newer version: 7.2.7
Show newest version
package org.frameworkset.tran.metrics.entity;
/**
 * Copyright 2020 bboss
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import java.text.DateFormat; import java.util.Date; /** *

Description:

*

*

Copyright (c) 2020

* @Date 2020/6/2 14:19 * @author biaoping.yin * @version 1.0 */ public class MapData { protected T data; protected MapContext mapContext; protected Date dataTime; protected DateFormat dayFormat ; protected DateFormat hourFormat ; protected DateFormat minuteFormat ; public DateFormat getWeekFormat() { return weekFormat; } public void setWeekFormat(DateFormat weekFormat) { this.weekFormat = weekFormat; } protected DateFormat weekFormat ; protected DateFormat monthFormat ; protected DateFormat yearFormat ; public DateFormat getSecondFormat() { return secondFormat; } public DateFormat getMonthFormat() { return monthFormat; } public void setMonthFormat(DateFormat monthFormat) { this.monthFormat = monthFormat; } public DateFormat getYearFormat() { return yearFormat; } public void setYearFormat(DateFormat yearFormat) { this.yearFormat = yearFormat; } public void setSecondFormat(DateFormat secondFormat) { this.secondFormat = secondFormat; } protected DateFormat secondFormat ; // public List getSpecialExceptions() { // return specialExceptions; // } // // public void setSpecialExceptions(List specialExceptions) { // this.specialExceptions = specialExceptions; // } public T getData() { return data; } public void setData(T data) { this.data = data; } public DateFormat getDayFormat() { return dayFormat; } public void setDayFormat(DateFormat dayFormat) { this.dayFormat = dayFormat; } public DateFormat getHourFormat() { return hourFormat; } public void setHourFormat(DateFormat hourFormat) { this.hourFormat = hourFormat; } public DateFormat getMinuteFormat() { return minuteFormat; } public void setMinuteFormat(DateFormat minuteFormat) { this.minuteFormat = minuteFormat; } /** * 根据指标标识,获取指标的时间统计维度字段,默认返回dataTime字段值,不同的指标需要指定不同的时间维度统计字段 * 分析处理作业可以覆盖本方法,自定义获取时间维度字段值 * @param metricsKey * @return */ public Date metricsDataTime(String metricsKey) { return dataTime; } public Date getDataTime() { return dataTime; } public void setDataTime(Date dataTime) { this.dataTime = dataTime; } public void setMapContext(MapContext mapContext) { this.mapContext = mapContext; } public MapContext getMapContext() { return mapContext; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy