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
Sample specification.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlSampleSpec
SqlSampleSpec.SqlSubstitutionSampleSpec, SqlSampleSpec.SqlTableSampleSpec
-
Method Summary
Modifier and TypeMethodDescriptionint
Seed to produce repeatable samples.float
Returns sampling percentage.boolean
Indicates Bernoulli vs.boolean
Indicates whether repeatable seed should be used.toString()
Methods inherited from class org.apache.calcite.sql.SqlSampleSpec
createNamed, createTableSample, createTableSample
-
Method Details
-
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
-