Friday 1 May 2015

Data Types in Hadoop

In Hadoop, the two basic data types are:

    WritableComparable is the base interface for keys, and
    Writable is the base class interface for values.

Classes implementing the above two interfaces provide your basic primitives:

byte ----------------- ByteWritable

int ----------------- IntWritable

long ----------------- LongWritable

float ----------------- FloatWritable

boolean ----------------- BooleanWritable

 You can use the following built-in data types as key and value.

    Text :This class stores text using standard UTF8 encoding.
    ByteWritable : This stores a sequence of bytes.
    VIntWritable and VLongWritable : WritableComparable for integer and long values stored in variable-length format.
    Nullwritable:This is zero-length Writable type that can be used when you don’t want to use a key or value type.

The following hadoop built-in collection data types can only be used as value types


 ArrayWritable:This stores an array of values belonging to a Writable type.
 TwoDArrayWritable:This stores a matrix of values belonging to the same Writable type.


 MapWritable:This stores a map of key-value pairs.keys and values should be of the writable  datatypes (Map<Writable,Writable>).
SortedMapwritable:This stores a sorte map of key-value pairs.Keys should implement the WritableComparable interface ( SortedMap<WritableComparable,Writable> ).

What is Big Data- Know More about BIG Data-Click here

If you know anyone who has started learning Hadoop, why not help them out! Just share this post with them. Thanks for studying today!...

8 comments:

  1. impress by your work
    you can check out some of my hadoop content at http://hadoopquiz.blogspot.in
    if you can please share some good post for my blog as an author

    ReplyDelete
  2. A Computer Scientist figures out how to plan programming frameworks and gains top to bottom learning of the hypothesis of calculation. ExcelR Data Science Courses

    ReplyDelete
  3. Thanks for sharing useful information on big data technology. Bigdata is going to be future of the computing world in the coming years. This field is a very good option that provides huge offers as career prospects for beginners and talented professionals. So, taking bigdata training institute in bangalore will help you to start good career in big data technology.

    ReplyDelete
  4. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area. data science training in Hyderabad

    ReplyDelete
  5. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area. data science training in Hyderabad

    ReplyDelete
  6. Thanks for sharing such a valuable information. I really like it. Keep sharing!
    AI Patasala-Data Science course in Hyderabad

    ReplyDelete
  7. Really an awesome blog and informative content. Thanks for sharing with us. If you want to become a data scientist, then check out the following link.
    Data Science Course Institute in Hyderabad

    ReplyDelete