@Override public Aggregator[] newAggregators() { return newAggregators(null); }
@Override public Aggregator[] cache(ImmutableBytesPtr cacheKey) { ImmutableBytesPtr key = new ImmutableBytesPtr(cacheKey); Aggregator[] rowAggregators = aggregateMap.get(key); if (rowAggregators == null) { // If Aggregators not found for this distinct // value, clone our original one (we need one // per distinct value) if (logger.isDebugEnabled()) { logger.debug(LogUtil.addCustomAnnotations("Adding new aggregate bucket for row key " + Bytes.toStringBinary(key.get(), key.getOffset(), key.getLength()), customAnnotations)); } rowAggregators = aggregators.newAggregators(env.getConfiguration()); aggregateMap.put(key, rowAggregators); if (aggregateMap.size() > estDistVals) { // increase allocation estDistVals *= 1.5f; long estSize = sizeOfUnorderedGroupByMap(estDistVals, aggregators.getEstimatedByteSize()); chunk.resize(estSize); } } return rowAggregators; }
rowAggregators = aggregators.newAggregators(env.getConfiguration()); if (logger.isDebugEnabled()) { logger.debug("Adding new aggregate bucket for row key "
@Override public Aggregator[] newAggregators() { return newAggregators(null); }
@Override public Aggregator[] newAggregators() { return newAggregators(null); }
@Override public Aggregator[] cache(ImmutableBytesPtr cacheKey) { ImmutableBytesPtr key = new ImmutableBytesPtr(cacheKey); Aggregator[] rowAggregators = aggregateMap.get(key); if (rowAggregators == null) { // If Aggregators not found for this distinct // value, clone our original one (we need one // per distinct value) if (logger.isDebugEnabled()) { logger.debug(LogUtil.addCustomAnnotations("Adding new aggregate bucket for row key " + Bytes.toStringBinary(key.get(), key.getOffset(), key.getLength()), customAnnotations)); } rowAggregators = aggregators.newAggregators(env.getConfiguration()); aggregateMap.put(key, rowAggregators); if (aggregateMap.size() > estDistVals) { // increase allocation estDistVals *= 1.5f; long estSize = sizeOfUnorderedGroupByMap(estDistVals, aggregators.getEstimatedByteSize()); chunk.resize(estSize); } } return rowAggregators; }
@Override public Aggregator[] cache(ImmutableBytesPtr cacheKey) { ImmutableBytesPtr key = new ImmutableBytesPtr(cacheKey); Aggregator[] rowAggregators = aggregateMap.get(key); if (rowAggregators == null) { // If Aggregators not found for this distinct // value, clone our original one (we need one // per distinct value) if (logger.isDebugEnabled()) { logger.debug(LogUtil.addCustomAnnotations("Adding new aggregate bucket for row key " + Bytes.toStringBinary(key.get(), key.getOffset(), key.getLength()), customAnnotations)); } rowAggregators = aggregators.newAggregators(env.getConfiguration()); aggregateMap.put(key, rowAggregators); if (aggregateMap.size() > estDistVals) { // increase allocation estDistVals *= 1.5f; long estSize = sizeOfUnorderedGroupByMap(estDistVals, aggregators.getEstimatedByteSize()); chunk.resize(estSize); } } return rowAggregators; }
rowAggregators = aggregators.newAggregators(env.getConfiguration()); if (logger.isDebugEnabled()) { logger.debug("Adding new aggregate bucket for row key "
rowAggregators = aggregators.newAggregators(env.getConfiguration()); if (logger.isDebugEnabled()) { logger.debug("Adding new aggregate bucket for row key "