Ok, I can understand the concerns and agree with you on not exposing LP.
What I stated earlier is exactly the info I need - using PigServer register script/query and be able to determine the source/sinks. For eg, in the following snippet I read a script "script.pig". I don't control the contents of the script (written by other users) and as an admin would like to make sure I can read the I/O paths being used here.
pigServer = new PigServer(ExecType.MAPREDUCE, conf);
InputStream in = fs.open("/foo/script.pig");
A = load '/apache/pig/*';
B = store A into '/google';
The idea with this patch was to be able to determine source (/apache/pig) and sink (/google) and perform certain operations on it. Would be great if you think it can be done in a way better than exposing any of LP/Operator.