Executes a Pig Latin script up to and including indicated alias and stores the resulting records into a file. That is, if a user does:
PigServer server = new PigServer(); server.registerQuery("A = load 'foo';"); server.registerQuery("B = filter A by $0 > 0;"); server.registerQuery("C = order B by $1;");
Then
server.store("B", "bar");
filtered but unsorted data will be stored to the file
bar. If instead a user does
server.store("C", "bar");
filtered and sorted data will be stored to the file
bar. Equivalent to calling {@link #store(String,String,String)} with
org.apache.pig.PigStorage as the store function.
@param id The alias to store
@param filename The file to which to store to
@return {@link ExecJob} containing information about this job
@throws IOException