public class RelOptSamplingParameters extends Object
It's parameters are derived from the SQL 2003 TABLESAMPLE clause.
| Constructor and Description |
|---|
RelOptSamplingParameters(boolean isBernoulli,
float samplingPercentage,
boolean isRepeatable,
int repeatableSeed) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRepeatableSeed()
If
isRepeatable() returns true, this method returns a
user-specified seed value. |
float |
getSamplingPercentage()
Returns the sampling percentage.
|
boolean |
isBernoulli()
Indicates whether Bernoulli or system sampling should be performed.
|
boolean |
isRepeatable()
Indicates whether the sample results should be repeatable.
|
public RelOptSamplingParameters(boolean isBernoulli,
float samplingPercentage,
boolean isRepeatable,
int repeatableSeed)
public boolean isBernoulli()
public float getSamplingPercentage()
public boolean isRepeatable()
getRepeatableSeed().public int getRepeatableSeed()
isRepeatable() returns true, this method returns a
user-specified seed value. Samples of the same, unmodified relation
should be identical if the sampling mode, sampling percentage and
repeatable seed are the same.Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.