×

Apache Pig 介绍

Apache Pig 概述Apache Pig 架构

Apache Pig 环境

Apache Pig 安装Apache Pig 执行Apache Pig Grunt Shell

Pig Latin 介绍

Pig Latin 基础

Apache Pig 加载和存储

Apache Pig 加载数据Apache Pig 存储数据

Apache Pig 诊断运算符

Apache Pig Diagnostic运算符Apache Pig Describe运算符Apache Pig Explain运算符Apache Pig illustrate运算符

Apache Pig 分组和连接

Apache Pig Group运算符Apache Pig Cogroup运算符Apache Pig Join运算符Apache Pig Cross运算符

Apache Pig 合并和拆分

Apache Pig Union运算符Apache Pig Split运算符

Apache Pig 过滤

Apache Pig Filter运算符Apache Pig Distinct运算符Apache Pig Foreach运算符

Apache Pig 排序

Apache Pig Order By运算符Apache Pig Limit运算符

Pig Latin 内置函数

Apache Pig Eval函数Apache Pig 加载和存储函数Apache Pig 包和元组函数Apache Pig 字符串函数Apache Pig 日期时间函数Apache Pig 数学函数

Apache Pig 其他执行模式

Apache Pig 用户定义函数Apache Pig 运行脚本

Apache Pig 有用的资源

Apache Pig 有用资源Apache Pig 讨论

Apache Pig 日期时间函数


Apache Pig提供以下日期和时间函数 -

S.N. 函数 & 描述
1 ToDate(milliseconds)

此函数根据给定的参数返回日期时间对象。此函数的另一个替代方法是ToDate(iosstring),ToDate(userstring,format),ToDate(userstring,format,timezone)

2 CurrentTime()

返回当前时间的日期时间对象。

3 GetDay(datetime)

从日期时间对象返回一个月中的某一天。

4 GetHour(datetime)

从日期时间对象返回一天中的小时。

5 GetMilliSecond(datetime)

从日期时间对象返回秒中的毫秒。

6 GetMinute(datetime)

从日期时间对象返回一小时中的分钟。

7 GetMonth(datetime)

从日期时间对象返回一年中的月份。

8 GetSecond(datetime)

从日期时间对象返回一分钟的秒。

9 GetWeek(datetime)

从日期时间对象返回一年中的周。

10 GetWeekYear(datetime)

从日期时间对象返回周年。

11 GetYear(datetime)

从日期时间对象返回年份。

12 AddDuration(datetime, duration)

返回日期时间对象的结果以及持续时间对象。

13 SubtractDuration(datetime, duration)

从Date-Time对象中减去Duration对象并返回结果。

14 DaysBetween(datetime1, datetime2)

返回两个日期时间对象之间的天数。

15 HoursBetween(datetime1, datetime2)

返回两个日期时间对象之间的小时数。

16 MilliSecondsBetween(datetime1, datetime2)

返回两个日期时间对象之间的毫秒数。

17 MinutesBetween(datetime1, datetime2)

返回两个日期时间对象之间的分钟数。

18 MonthsBetween(datetime1, datetime2)

返回两个日期时间对象之间的月数。

19 SecondsBetween(datetime1, datetime2)

返回两个日期时间对象之间的秒数。

20 WeeksBetween(datetime1, datetime2)

返回两个日期时间对象之间的周数。

21 YearsBetween(datetime1, datetime2)

返回两个日期时间对象之间的年数。



分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)