×

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中有以下String函数。

S.N. 函数 & 描述
1 ENDSWITH(string, testAgainst)

验证给定字符串是否以特定子字符串结尾。

2 STARTSWITH(string, substring)

接受两个字符串参数,并验证第一个字符串是否以第二个字符串开头。

3 SUBSTRING(string, startIndex, stopIndex)

返回来自给定字符串的子字符串。

4 EqualsIgnoreCase(string1, string2)

比较两个字符串,忽略大小写。

5 INDEXOF(string, ‘character’, startIndex)

返回字符串中第一个出现的字符,从开始索引向前搜索。

6 LAST_INDEX_OF(expression)

返回字符串中最后一次出现的字符的索引,从开始索引向后搜索。

7 LCFIRST(expression)

将字符串中的第一个字符转换为小写。

8 UCFIRST(expression)

返回一个字符串,其中第一个字符转换为大写。

9 UPPER(expression)

返回转换为大写的字符串。

10 LOWER(expression)

将字符串中的所有字符转换为小写。

11 REPLACE(string, ‘oldChar’, ‘newChar’);

使用新字符替换字符串中的现有字符。

12 STRSPLIT(string, regex, limit)

围绕给定正则表达式的匹配拆分字符串。

13 STRSPLITTOBAG(string, regex, limit)

STRSPLIT() 函数类似,它通过给定的分隔符将字符串拆分,并将结果返回到包中。

14 TRIM(expression)

返回删除了前端和尾部空格的字符串的副本。

15 LTRIM(expression)

返回删除了前端空格的字符串的副本。

16 RTRIM(expression)

返回已删除尾部空格的字符串的副本。



分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)