pig tutorial - apache pig tutorial - Pig tutorial - pig latin - apache pig - pig hadoop




Functions & user defined functions

  • Transform data in data projections
  • Built-in functions:
    • math functions, string functions, datetime functions, casting functions, etc.
  • User defined functions:
    • Our own functions written in Java, Python, Ruby, Javascript, etc.
  • Bag functions:
    • AVG/MAX/MIN/SUM: compute the average/max/min/sum of a bag of numeric values
    • learn apache pig - apache pig tutorial - pig tutorial - apache pig examples - big data - apache pig script - apache pig program - apache pig download - apache pig example  - apache bag function operation
    • COUNT: number of elements (not null) in a bag
    • learn apache pig - apache pig tutorial - pig tutorial - apache pig examples - big data - apache pig script - apache pig program - apache pig download - apache pig example  - apache bag count function operation
    • Bag/Tuple functions:
      • FLATTEN: behavior depends on input
      learn apache pig - apache pig tutorial - pig tutorial - apache pig examples - big data - apache pig script - apache pig program - apache pig download - apache pig example  - pig bag tuple flatten function
      learn apache pig - apache pig tutorial - pig tutorial - apache pig examples - big data - apache pig script - apache pig program - apache pig download - apache pig example  - pig bag tuple flatten function
      • SUBTRACT: Tuples on first bag not in the second
      learn apache pig - apache pig tutorial - pig tutorial - apache pig examples - big data - apache pig script - apache pig program - apache pig download - apache pig example  - pig bag tuple subtractfunction
      • DIFF: Non overlapping tuples on two bags
      learn apache pig - apache pig tutorial - pig tutorial - apache pig examples - big data - apache pig script - apache pig program - apache pig download - apache pig example  - pig bag tuple diff function
    • Math functions:
      • Common math functions for numeric values:
        • ABS
        • EXP
        • FLOOR
        • LOG
        • RANDOM
        • ROUND
        • SQRT
        • ...
    • String functions:
      • Transform chararrays:
        • ENDSWITH
        • LOWER
        • UPPER
        • SUBSTRING
        • TRIM
        • REPLACE
        • ...
    • Datetime functions:
      • Get information on dates and timestamps:
        • AddDuration
        • CurrentTime
        • ToDate
        • ToString
        • ToUnixTime
        • DaysBetween
        • ...

    Related Searches to Apache Pig Overview