Examples of TezCounter


Examples of org.apache.tez.common.counters.TezCounter

  }

  private static long getCounterValueByGroupName(TezCounters vertexCounters,
      String groupNamePattern,
      String counterName) {
    TezCounter tezCounter = vertexCounters.getGroup(groupNamePattern).findCounter(counterName);
    return (tezCounter == null) ? 0 : tezCounter.getValue();
  }
View Full Code Here

Examples of org.apache.tez.common.counters.TezCounter

    }

  @Override
  protected long getCounterValue( TezCounters counterGroups, Enum counter )
    {
    TezCounter tezCounter = counterGroups.findCounter( counter );

    if( tezCounter == null )
      return 0;

    return tezCounter.getValue();
    }
View Full Code Here

Examples of org.apache.tez.common.counters.TezCounter

    CounterGroup counterGroup = counterGroups.getGroup( groupName );

    if( counterGroup == null )
      return 0;

    TezCounter counterValue = counterGroup.findCounter( counterName );

    if( counterValue == null )
      return 0;

    return counterValue.getValue();
    }
View Full Code Here

Examples of org.apache.tez.dag.history.avro.TezCounter

      TezCounterGroup g = new TezCounterGroup();
      g.name = new Utf8(group.getName());
      g.displayName = new Utf8(group.getDisplayName());
      g.counts = new ArrayList<TezCounter>(group.size());
      for (org.apache.tez.common.counters.TezCounter counter : group) {
        TezCounter c = new TezCounter();
        c.name = new Utf8(counter.getName());
        c.displayName = new Utf8(counter.getDisplayName());
        c.value = counter.getValue();
        g.counts.add(c);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.