|
@@ -584,9 +584,9 @@ abstract public class Task implements Writable, Configurable {
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
- @InterfaceAudience.Private
|
|
|
+ @InterfaceAudience.LimitedPrivate({"MapReduce"})
|
|
|
@InterfaceStability.Unstable
|
|
|
- protected class TaskReporter
|
|
|
+ public class TaskReporter
|
|
|
extends org.apache.hadoop.mapreduce.StatusReporter
|
|
|
implements Runnable, Reporter {
|
|
|
private TaskUmbilicalProtocol umbilical;
|
|
@@ -1466,9 +1466,9 @@ abstract public class Task implements Writable, Configurable {
|
|
|
return reducerContext;
|
|
|
}
|
|
|
|
|
|
- @InterfaceAudience.Private
|
|
|
+ @InterfaceAudience.LimitedPrivate({"MapReduce"})
|
|
|
@InterfaceStability.Unstable
|
|
|
- protected static abstract class CombinerRunner<K,V> {
|
|
|
+ public static abstract class CombinerRunner<K,V> {
|
|
|
protected final Counters.Counter inputCounter;
|
|
|
protected final JobConf job;
|
|
|
protected final TaskReporter reporter;
|
|
@@ -1486,13 +1486,13 @@ abstract public class Task implements Writable, Configurable {
|
|
|
* @param iterator the key/value pairs to use as input
|
|
|
* @param collector the output collector
|
|
|
*/
|
|
|
- abstract void combine(RawKeyValueIterator iterator,
|
|
|
+ public abstract void combine(RawKeyValueIterator iterator,
|
|
|
OutputCollector<K,V> collector
|
|
|
) throws IOException, InterruptedException,
|
|
|
ClassNotFoundException;
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
- static <K,V>
|
|
|
+ public static <K,V>
|
|
|
CombinerRunner<K,V> create(JobConf job,
|
|
|
TaskAttemptID taskId,
|
|
|
Counters.Counter inputCounter,
|
|
@@ -1542,7 +1542,7 @@ abstract public class Task implements Writable, Configurable {
|
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
- protected void combine(RawKeyValueIterator kvIter,
|
|
|
+ public void combine(RawKeyValueIterator kvIter,
|
|
|
OutputCollector<K,V> combineCollector
|
|
|
) throws IOException {
|
|
|
Reducer<K,V,K,V> combiner =
|
|
@@ -1611,7 +1611,7 @@ abstract public class Task implements Writable, Configurable {
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@Override
|
|
|
- void combine(RawKeyValueIterator iterator,
|
|
|
+ public void combine(RawKeyValueIterator iterator,
|
|
|
OutputCollector<K,V> collector
|
|
|
) throws IOException, InterruptedException,
|
|
|
ClassNotFoundException {
|