Re: How can Storagefunc know the schema

2011-07-10 Thread Dmitriy Ryaboy
http://pig.apache.org/docs/r0.8.0/api/org/apache/pig/StoreFunc.html#checkSchema(org.apache.pig.ResourceSchema) On Fri, Jul 8, 2011 at 7:40 PM, zehua zhou wrote: > I want to write my own StoreFunc which will be similar to PigStorage. How can > I know the column names inside my StoreFunc functions

How can Storagefunc know the schema

2011-07-09 Thread zehua zhou
I want to write my own StoreFunc which will be similar to PigStorage. How can I know the column names inside my StoreFunc functions? for example, I load a csv file into table using some schema. Then I need to write output using my StoreFunc function. How can I know the table schema?