Package org.apache.tez.common.counters

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


    }

  @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

    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

TOP

Related Classes of org.apache.tez.common.counters.TezCounter

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.