public class RelOptSamplingParameters extends Object
It's parameters are derived from the SQL 2003 TABLESAMPLE clause.
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isBernoulli |
private boolean |
isRepeatable |
private int |
repeatableSeed |
private float |
samplingPercentage |
| 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.
|
private final boolean isBernoulli
private final float samplingPercentage
private final boolean isRepeatable
private final int repeatableSeed
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–2018 The Apache Software Foundation. All rights reserved.