Apache Pig Introduction
Apache Pig Environment
Pig Latin
Load & Store Operators
Diagnostic Operators
- Apache Pig - Illustrate Operator
- Apache Pig - Explain Operator
- Apache Pig - Describe Operator
- Apache Pig - Diagnostic Operator
Grouping & Joining
- Apache Pig - Cross Operator
- Apache Pig - Join Operator
- Apache Pig - Cogroup Operator
- Apache Pig - Group Operator
Combining & Splitting
Filtering
Sorting
Pig Latin Built-In Functions
- Apache Pig - Math Functions
- Apache Pig - date-time Functions
- Apache Pig - String Functions
- Apache Pig - Bag & Tuple Functions
- Load & Store Functions
- Apache Pig - Eval Functions
Other Modes Of Execution
Apache Pig Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Apache Pig - Date-time Functions
Apache Pig provides the following Date and Time functions −
S.N. | Functions & Description |
---|---|
1 | This function returns a date-time object according to the given parameters. The other alternative for this function are ToDate(iosstring), ToDate(userstring, format), ToDate(userstring, format, timezone) |
2 | returns the date-time object of the current time. |
3 | Returns the day of a month from the date-time object. |
4 | Returns the hour of a day from the date-time object. |
5 | Returns the milpsecond of a second from the date-time object. |
6 | Returns the minute of an hour from the date-time object. |
7 | Returns the month of a year from the date-time object. |
8 | Returns the second of a minute from the date-time object. |
9 | Returns the week of a year from the date-time object. |
10 | Returns the week year from the date-time object. |
11 | Returns the year from the date-time object. |
12 | Returns the result of a date-time object along with the duration object. |
13 | Subtracts the Duration object from the Date-Time object and returns the result. |
14 | Returns the number of days between the two date-time objects. |
15 | Returns the number of hours between two date-time objects. |
16 | Returns the number of milpseconds between two date-time objects. |
17 | Returns the number of minutes between two date-time objects. |
18 | Returns the number of months between two date-time objects. |
19 | Returns the number of seconds between two date-time objects. |
20 | Returns the number of weeks between two date-time objects. |
21 | Returns the number of years between two date-time objects. |