public interface ShardContext extends Context
Modifier and Type | Method and Description |
---|---|
Counter |
getCounter(String name)
Returns the
Counter with the given name. |
Counters |
getCounters()
Returns a
Counters object for doing simple aggregate calculations. |
int |
getShardCount()
Returns the total number of shards.
|
int |
getShardNumber()
Returns the number of this mapper or reducer shard (zero-based).
|
void |
incrementCounter(String name)
Increments the
Counter with the given name by 1. |
void |
incrementCounter(String name,
long delta)
Increments the
Counter with the given name by delta . |
int getShardCount()
int getShardNumber()
Counters getCounters()
Counters
object for doing simple aggregate calculations.void incrementCounter(String name, long delta)
Counter
with the given name by delta
.Copyright © 2015 Google. All rights reserved.