Andy Xue <
and...@lumoslabs.com> writes:
> i think you are better off just storing the field names in a separate
> file that your app can read
Ok, thanks. I'll give that a try.
> also look into the TextDelimited class in Cascading ... you can
> passing a list of field names and types -- if you set the "price"
> field as integer, it will automatically coerce it from string to
> integer
I had hoped that TextDelimited would find the vars for me in some way.
In Cascading 2.0 the docs say:
It is assumed if sink/source fields is set to either Fields.ALL or
Fields.UNKNOWN and skipHeader or hasHeader is true, the field names
will be retrieved from the header of the file and used during
planning. The header will parsed with the same rules as the body of
the file.
Cheers,
Chris Dean