Package com.alibaba.jstorm.common.stats

Examples of com.alibaba.jstorm.common.stats.StaticsType


    Map<StaticsType, List<Object>> mergedStreamTasks = mergeStream(
        taskSummaries, window);
    for (Entry<StaticsType, List<Object>> entry : mergedStreamTasks
        .entrySet()) {
      StaticsType type = entry.getKey();
      List<Object> valueList = entry.getValue();

      Object valueSum = JStormUtils.mergeList(valueList);

      ret.put(type, valueSum);
View Full Code Here


    CommonStatsData otherData = (CommonStatsData) assignment;

    for (Entry<StaticsType, Map<Integer, Object>> entry : staticsMap
        .entrySet()) {
      StaticsType type = entry.getKey();
      Map<Integer, Object> value = entry.getValue();

      Map<Integer, Object> otherValue = otherData.get(type);

      if (value.equals(otherValue) == false) {
View Full Code Here

  @Override
  public int hashCode() {
    int ret = 0;
    for (Entry<StaticsType, Map<Integer, Object>> entry : staticsMap
        .entrySet()) {
      StaticsType type = entry.getKey();
      Map<Integer, Object> value = entry.getValue();

      ret += value.hashCode();
    }
    return ret;
View Full Code Here

    CommonStatsData ret = new CommonStatsData();

    for (Entry<StaticsType, RollingWindowSet> entry : staticTypeMap
        .entrySet()) {
      StaticsType type = entry.getKey();
      RollingWindowSet rws = entry.getValue();

      Map<Integer, Object> csData = rws.value_rolling_window_set();

      ret.put(type, csData);
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.common.stats.StaticsType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.