• Post Reply Bookmark Topic Watch Topic
  • New Topic

are these interface arguments ?  RSS feed

 
Aftab Hassan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I'm a bit confused about what feature of Java this is. I am doing a bit of Hadoop and this syntax is something I've not seen before.



Can you tell me what <...> above is, and point me to an online page/tutorial regarding the same?

Thanks.

PS : Kindly note that I respect that this forum is only for Java related queries and not for Hadoop etc. Just thought I'd post it here, since it was a Java question.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's generics. It has nothing to do with interfaces, specifically.
 
Aftab Hassan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:That's generics. It has nothing to do with interfaces, specifically.

Thanks a lot Ulf Dittmer for the pointer.
Googled and figured out the rest.

Marking the thread as solved.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who wrote a class with four type parameters?
 
Paweł Baczyński
Bartender
Posts: 2083
44
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Who wrote a class with four type parameters?

Don't know. But I think it is this class from hadoop: Mapper you can found this class' history here ;).
But if this is the class OP meant then this declaration:will result in a compile error.
You can't implement a class. Interface only.

Aftab, is full name of your Mapper class org.apache.hadoop.mapreduce.Mapper?
 
Aftab Hassan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pawel Pawlowicz wrote:Aftab, is full name of your Mapper class org.apache.hadoop.mapreduce.Mapper?

Yes, that's the one.
http://hadoop.apache.org/docs/r2.3.0/api/org/apache/hadoop/mapreduce/Mapper.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!