@Override public Counter getCounter(String groupName, String counterName) { return baseContext.getCounter(groupName, counterName); } }
@SuppressWarnings("unchecked") @Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(String group, String name) { return context.getCounter(group, name); }
@Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(String group, String name) { return context.getCounter(group, name); }
@Override public Counter getCounter(String group, String name) { try { return context.getCounter(group, name); } catch (NullPointerException npe) { return null; } }
@Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(String group, String name) { return context.getCounter(group, name); }
@Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(String group, String name) { return context.getCounter(group, name); }
@Override public Counter getCounter(Enum<?> name) { return context.getCounter(name); }
@Override public Counter getCounter(String group, String name) { return context.getCounter(group, name); }
@Override public void flush(TaskAttemptContext context) { context.getCounter(counterGroup, tableName).increment(count); this.count = 0; } }
private static void putCounts0( TaskAttemptContext context, String groupId, String itemId, long fileCount, long recordCount, long byteCount) { if (itemId == null) { return; } context.getCounter(groupId, itemId + SUFFIX_FILE_COUNT).increment(fileCount); context.getCounter(groupId, itemId + SUFFIX_RECORD_COUNT).increment(recordCount); context.getCounter(groupId, itemId + SUFFIX_BYTE_COUNT).increment(byteCount); }
/** * A helper method to get the appropriate counter dependent on whether we have a statsd client */ public Counter getCounter(TaskAttemptContext context, Enum<?> counterName) { return getContext(context).getCounter(counterName); }
@Override public void flush(TaskAttemptContext context) { context.getCounter(counterGroup, tableName).increment(this.count); this.count = 0; context.getCounter(counterGroup, fieldIndex).increment(this.fiCount); this.fiCount = 0; } }
/** * A helper method to get the appropriate counter dependent on whether we have a statsd client */ public Counter getCounter(TaskAttemptContext context, String group, String counter) { return getContext(context).getCounter(group, counter); }
/** * Increment the schema or instance triple counter, as appropriate. */ protected static void countInput(boolean schema, TaskAttemptContext context) { if (schema) { context.getCounter(COUNTERS.TBOX).increment(1); } else { context.getCounter(COUNTERS.ABOX).increment(1); } }