Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (43 loc) · 1.46 KB

Hadoop_CounterGroup_API.md

File metadata and controls

52 lines (43 loc) · 1.46 KB

The purpose of the Counter object is to provide programmatic access to the Hadoop CounterGroup object. Below is a list of exposed object properties.

CounterGroup

For example usage of all available APIs, please see the unit tests.

/* No public constructor. */

/**
 * Find counter by name or create one with the given name.
 *
 * @param {string} name - The name of the counter to find or create
 *
 * @returns {Counter}
 */
CounterGroup.prototype.findCounter = function (name) { /* ... */ };

/**
 * Get the display name of the group.
 *
 * @returns {string}
 */
CounterGroup.prototype.getDisplayName = function () { /* ... */ };

/**
 * Get the name of the group.
 *
 * @returns {string}
 */
CounterGroup.prototype.getName = function () { /* ... */ };

/**
 * Increments multiple counters by their amounts in another CounterGroup instance.
 *
 * @param {CounterGroup} other - The other group of counters
 *
 * @returns {CounterGroup} this
 */
CounterGroup.prototype.incrAllCounters = function (other) { /* ... */ };

/**
 * Returns the number of counters in this group.
 *
 * @returns {number}
 */
CounterGroup.prototype.size = function () { /* ... */ };