org.eigenbase.sql
Class SqlSampleSpec.SqlTableSampleSpec

java.lang.Object
  extended by org.eigenbase.sql.SqlSampleSpec
      extended by org.eigenbase.sql.SqlSampleSpec.SqlTableSampleSpec
Enclosing class:
SqlSampleSpec

public static class SqlSampleSpec.SqlTableSampleSpec
extends SqlSampleSpec


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eigenbase.sql.SqlSampleSpec
SqlSampleSpec.SqlSubstitutionSampleSpec, SqlSampleSpec.SqlTableSampleSpec
 
Field Summary
private  boolean isBernoulli
           
private  boolean isRepeatable
           
private  int repeatableSeed
           
private  float samplePercentage
           
 
Constructor Summary
private SqlSampleSpec.SqlTableSampleSpec(boolean isBernoulli, float samplePercentage)
           
private SqlSampleSpec.SqlTableSampleSpec(boolean isBernoulli, float samplePercentage, int repeatableSeed)
           
 
Method Summary
 int getRepeatableSeed()
          Seed to produce repeatable samples.
 float getSamplePercentage()
          Returns sampling percentage.
 boolean isBernoulli()
          Indicates Bernoulli vs.
 boolean isRepeatable()
          Indicates whether repeatable seed should be used.
 String toString()
           
 
Methods inherited from class org.eigenbase.sql.SqlSampleSpec
createNamed, createTableSample, createTableSample
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isBernoulli

private final boolean isBernoulli

samplePercentage

private final float samplePercentage

isRepeatable

private final boolean isRepeatable

repeatableSeed

private final int repeatableSeed
Constructor Detail

SqlSampleSpec.SqlTableSampleSpec

private SqlSampleSpec.SqlTableSampleSpec(boolean isBernoulli,
                                         float samplePercentage)

SqlSampleSpec.SqlTableSampleSpec

private SqlSampleSpec.SqlTableSampleSpec(boolean isBernoulli,
                                         float samplePercentage,
                                         int repeatableSeed)
Method Detail

isBernoulli

public boolean isBernoulli()
Indicates Bernoulli vs. System sampling.


getSamplePercentage

public float getSamplePercentage()
Returns sampling percentage. Range is 0.0 to 1.0, exclusive


isRepeatable

public boolean isRepeatable()
Indicates whether repeatable seed should be used.


getRepeatableSeed

public int getRepeatableSeed()
Seed to produce repeatable samples.


toString

public String toString()
Overrides:
toString in class Object