Didn¹t realize any, but it should be pretty easy to write a customized Loader/InputFormat for that.
Daniel On 3/5/15, 6:18 AM, "Ronald Green" <[email protected]> wrote: >Hi, > >I'm looking for a loader function that will let me read each file as a >record on its own so I'll be able to treat each as a single record/field. >For example: > >a = load '/files' USING TheLoader() as (file:chararray); >b = foreach a GENERATE REGEX_EXTRACT(file,'...'); > >PigStorage and TextLoader return each line in the file as a record/tuple. > >Do you know any other loader that allows to get an entire file as a >record? > >Thanks, >Ron
