Package org.apache.calcite.sql
Class SqlSampleSpec.SqlTableSampleSpec
- java.lang.Object
-
- org.apache.calcite.sql.SqlSampleSpec
-
- org.apache.calcite.sql.SqlSampleSpec.SqlTableSampleSpec
-
- Enclosing class:
- SqlSampleSpec
public static class SqlSampleSpec.SqlTableSampleSpec extends SqlSampleSpec
Sample specification.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlSampleSpec
SqlSampleSpec.SqlSubstitutionSampleSpec, SqlSampleSpec.SqlTableSampleSpec
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isBernoulli
private boolean
isRepeatable
private int
repeatableSeed
private float
samplePercentage
-
Constructor Summary
Constructors Modifier Constructor Description private
SqlTableSampleSpec(boolean isBernoulli, float samplePercentage)
private
SqlTableSampleSpec(boolean isBernoulli, float samplePercentage, int repeatableSeed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
toString()
-
Methods inherited from class org.apache.calcite.sql.SqlSampleSpec
createNamed, createTableSample, createTableSample
-
-
-
-
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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-