in this video we are discussing pig
latin data model we know that pig latin
is the high-level language which is
available with pig
so pig latin data model we are going to
discuss we shall discuss it with one
diagram and some explanations just
consider this diagram so here you are
having the bag and we are having that
tupple you can find that this is this
row will be known as a couple and this
is a bag so bag is consisting of
multiple tuples and here it is a field
and there is a filled value so that data
model of pig latin the data model of pig
latin is fully nested and it allows
complex non atomic data types so this
pig latin data model supports complex
non atomic data types what are they so
they can be a map and at Apple you can
find that this is at Apple and then what
is the map map means collection of
key-value pairs and that map and tableau
can be considered as complex non had to
make data types so the above is the
diagrammatic representation of piglet
ins data model so let us discuss all
these terminologies one by one so at
first we are starting with this atom a
single value in pig latin the
irrespective of the data is known as
atom so atom stores as a string and this
can be used as string and number so atom
is the single value at a time and it can
be it will be stored in the form of
string and can be operated as a string
or in number a piece of data or a simple
atomic value is known as a field as an
example ashame can be considered as an
atom next we are going for the tupple
now what is the tupple a record which is
formed by an ordered set of fields is
known as a topple so you can find that
this this atomic value is also known as
a field and then order set of fields
will form one tupple
as an example you can consider or shem
comma 25 is an example of a tuple next
we are going for the bag the collection
of tuples will be known as a bag and
each tuple can have any number of fields
a bag is represented within curly braces
a bag will be represented within curly
braces as an example we can consider
that within curly braces were having one
tupple that is a shim comma 25 another
tuple
Rahul comma 30 another tuple hawisher
command 23 so bag is nothing but
collection of tuples and should be
enclosed within curly braces next one we
are going for this map a map or data map
is a set of key value pairs it is a set
of key value pairs the key needs to be
of type character array and should be
unique the key who should have some
unique values there and the value might
be of any type and it can be represented
or it should be represented within
square brackets you can find that as an
example name number is head awesome and
each number is our 25 and it has been
enclosed within third brackets within
the square brackets that means it is
representing our map here
so map is nothing but collection of key
value pairs
he will have the distinct values and
values can have of different data types
next one we are having the relation now
what is a deletion a deletion is a bag
of tuples and the deletions in pig latin
are unordered and there is no guarantee
that tuples are processed in any
particular order and that is known as a
relation so the relation is a bag of
tuples actually so now this is the
concept and this is the piglet in data
model and we have discussed all the
respective terminologies in the more
details for your better understanding
thanks for watching this video