@Override
public void initialize(ProcessorContext processorContext)
throws ExecException {
if (isMultiStore()) {
CounterGroup multiStoreGroup = processorContext.getCounters()
.getGroup(MRPigStatsUtil.MULTI_STORE_COUNTER_GROUP);
if (multiStoreGroup == null) {
processorContext.getCounters().addGroup(
MRPigStatsUtil.MULTI_STORE_COUNTER_GROUP,
MRPigStatsUtil.MULTI_STORE_COUNTER_GROUP);
}
String name = MRPigStatsUtil.getMultiStoreCounterName(this);
if (name != null) {
outputRecordCounter = multiStoreGroup.addCounter(name, name, 0);
}
}
}