This project has retired. For details please refer to its Attic page.
Sample (Apache Crunch 0.3.0-incubating API)

org.apache.crunch.lib
Class Sample

java.lang.Object
  extended by org.apache.crunch.lib.Sample

public class Sample
extends Object


Nested Class Summary
static class Sample.SamplerFn<S>
           
 
Constructor Summary
Sample()
           
 
Method Summary
static
<S> PCollection<S>
sample(PCollection<S> input, double probability)
           
static
<S> PCollection<S>
sample(PCollection<S> input, long seed, double probability)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sample

public Sample()
Method Detail

sample

public static <S> PCollection<S> sample(PCollection<S> input,
                                        double probability)

sample

public static <S> PCollection<S> sample(PCollection<S> input,
                                        long seed,
                                        double probability)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.