00:01
We have over here is explain about the various data types supported by pig in its data model within an example.
00:11
So before we take a look at the operators that pig latin provides, we first need to understand pig's data model.
00:20
So this includes pigs data types, how it handle concepts such as missing data and how you can you can describe your data the pig.
00:33
So if we talk about types, you know, pigs, data types can be divided into two categories, scalar types and complex types, which contain in scalar type, which contain a single value, single value, and in complex type which contain other types, right? so in scalar types, pigs killer types are you know simple types that appear in most programming languages.
01:14
So with the exception of byte array they are all represented in pig interfaces by java .lang classes making them easy to work within an udf.
01:27
So if we talk about integer over here, an integer, you know,.
01:34
.
01:40
.
01:41
They are represented in interfaces by java.
01:46
.lang.
01:49
Dot integer, right? the constant integers are expressed as integer numbers, for example, 42, right? and if we talk about long data type, a long integer or longs are represented and interfaces by java.
02:13
Long.
02:16
Right? they store an 8 byte sine integer.
02:23
Constant longs are expressed as integer numbers with an l appended.
02:30
For example, we say, right? so in the float data type, a floating point number, you know, floors are represented in interfaces by java dot length not float right and float use four bytes to store their value you can find the range of value representable by java's float type double right and float point numbers can be expressed in simple format like 3 .14 f or in exponent format like 6 .022 e2 .3f, right? so in double data type, a double precision floating point number, doubles are actually represented in interfaces by java.
03:39
Lange.
03:46
And use 8 bytes to store their value.
03:49
Right and you can find the range of value represented representable by java's double type so the constant doubles are expressed as a floating point number in either simple format like 2 .7 -1828 or an exponent format like 6 .626 e -34 right so in character array data type a a string or character array, you know, character arrays are represented in the interfaces by java.
04:27
.
04:27
.
04:29
.
04:29
.
04:30
.
04:30
...