> hi, just wondering if there is any String function that returns the length of the string > like JAVA does: string.length()? > > I use pig 0.8.1
Re: function to return string's length
Dmitriy Ryaboy 2011-12-02, 18:13
Correct, that just calls into String.length() on the java side.
On Thu, Dec 1, 2011 at 2:27 PM, Clay B. <[EMAIL PROTECTED]> wrote: > Hi Dan, > > If I understand you want to count the length of a string loaded in as a > chararray, I would likely use the SIZE() built-in: > http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/builtin/SIZE.html. > > -Clay > > > On Thu, 1 Dec 2011, Dan Yi wrote: > >> hi, just wondering if there is any String function that returns the length >> of the string >> like JAVA does: string.length()? >> >> I use pig 0.8.1
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by Sematext