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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Seed to produce repeatable samples.float
Deprecated.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, createTableSample, createTableSample
-
Field Details
-
sampleRate
-
-
Method Details
-
isBernoulli
public boolean isBernoulli()Indicates Bernoulli vs. System sampling. -
getSamplePercentage
Deprecated.Returns the sampling rate. The range is 0.0 to 1.0. 0.0 returns no rows, and 1.0 returns all rows. -
isRepeatable
public boolean isRepeatable()Indicates whether repeatable seed should be used. -
getRepeatableSeed
public int getRepeatableSeed()Seed to produce repeatable samples. -
toString
-