I'm sure this is well known, I'm just curious why it is documented as
such... perhaps I am missing something obvious, but I see:
/**
* A load function that parses a line of input into fields using a delimiter
to
* set the fields. The delimiter is given as a regular expression. See
* {@link java.lang.String#split(String)} and {@link
java.util.regex.Pattern}
* for more information.
*/
But then
/**
* Constructs a Pig loader that uses specified regex as a field
delimiter.
*
* @param delimiter
* the single byte character that is used to separate fields.
* ("\t" is the default.)
*/
public PigStorage(String delimiter) {
this();
fieldDel = StorageUtil.parseFieldDel(delimiter);
}
Nowhere does PigStorage use a regular expression? It only accepts a single
byte...
Just thought I'd ask. Thank you
Jon