You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Leon Town <le...@gmail.com> on 2012/05/09 12:52:30 UTC

The Source Code of "SAMPLE"

Dear pigs,

I want to know about the implementation of "SAMPLE".

Could you kindly tell me where shall I see the source code of "SAMPLE"?

Or tell me some links that describe the implementation of "SAMPLE".


many thanks!

Re: The Source Code of "SAMPLE"

Posted by Bill Graham <bi...@gmail.com>.
This link has some background:
http://wiki.apache.org/pig/PigSampler

And these are the sampler classes:
org.apache.pig.impl.builtin.SampleLoader
org.apache.pig.impl.builtin.PoissonSampleLoader
org.apache.pig.impl.builtin.RandomSampleLoader

I believe SAMPLE uses RandomSampleLoader.

On Wed, May 9, 2012 at 3:52 AM, Leon Town <le...@gmail.com> wrote:

> Dear pigs,
>
> I want to know about the implementation of "SAMPLE".
>
> Could you kindly tell me where shall I see the source code of "SAMPLE"?
>
> Or tell me some links that describe the implementation of "SAMPLE".
>
>
> many thanks!
>



-- 
*Note that I'm no longer using my Yahoo! email address. Please email me at
billgraham@gmail.com going forward.*