|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.SqlSampleSpec
public abstract class SqlSampleSpec
Specification of a SQL sample.
For example, the query
SELECT *
FROM emp TABLESAMPLE SUBSTITUTE('medium')
declares a sample which is created using createNamed(java.lang.String).
A sample is not a SqlNode. To include it in a parse tree, wrap it
as a literal, viz: SqlLiteral.createSample(SqlSampleSpec,
SqlParserPos).
| Nested Class Summary | |
|---|---|
static class |
SqlSampleSpec.SqlSubstitutionSampleSpec
|
static class |
SqlSampleSpec.SqlTableSampleSpec
|
| Constructor Summary | |
|---|---|
protected |
SqlSampleSpec()
|
| Method Summary | |
|---|---|
static SqlSampleSpec |
createNamed(String name)
Creates a sample which substitutes one relation for another. |
static SqlSampleSpec |
createTableSample(boolean isBernoulli,
float samplePercentage)
Creates a table sample without repeatability. |
static SqlSampleSpec |
createTableSample(boolean isBernoulli,
float samplePercentage,
int repeatableSeed)
Creates a table sample with repeatability. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SqlSampleSpec()
| Method Detail |
|---|
public static SqlSampleSpec createNamed(String name)
public static SqlSampleSpec createTableSample(boolean isBernoulli,
float samplePercentage)
isBernoulli - true if Bernoulli style sampling is to be used; false
for implementation specific samplingsamplePercentage - likelihood of a row appearing in the sample
public static SqlSampleSpec createTableSample(boolean isBernoulli,
float samplePercentage,
int repeatableSeed)
isBernoulli - true if Bernoulli style sampling is to be used; false
for implementation specific samplingsamplePercentage - likelihood of a row appearing in the samplerepeatableSeed - seed value used to reproduce the same sample
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||