Quantcast
Channel: Spring Community Forums - Hadoop
Viewing all articles
Browse latest Browse all 28

Map method with or without “implements”?

$
0
0
Hello

In some books (such as Hadoop, The Definitive Guide) the Mapper method is defined like this:

public class MapClass extends Mapper extends Mapper<...

but in other books (such as Hadoop in Action) is like this:

public static class MapClass extends MapReduceBase implements Mapper <...

Which one is prefered or what's the difference?.
Maybe the first option is newer?.
Why static?.
The same happens with other methods.

Regards

Viewing all articles
Browse latest Browse all 28

Trending Articles