Sunday 13 December 2015

What is the difference between TextInputFormat and KeyValueInputFormat class?

TextInputFormat: It reads lines of text files and provides the offset of the line as key to the Mapper and actual line as Value to the mapper.

 KeyValueInputFormat: Reads text file and parses lines into key, Val pairs. Everything up to the first tab character is sent as key to the Mapper and the remainder of the line is sent as value to the mapper.

1 comment:

  1. Nice Blog…!! Thanks for sharing this article. If you want to be a laptop expert. Check out for Laptop Repairing Course In Delhi, India.

    ReplyDelete