|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.relopt.RelOptSamplingParameters
public class RelOptSamplingParameters
RelOptSamplingParameters represents the parameters necessary to produce a sample of a relation.
It's parameters are derived from the SQL 2003 TABLESAMPLE clause.
Field Summary | |
---|---|
private boolean |
isBernoulli
|
private boolean |
isRepeatable
|
private int |
repeatableSeed
|
private float |
samplingPercentage
|
Constructor Summary | |
---|---|
RelOptSamplingParameters(boolean isBernoulli,
float samplingPercentage,
boolean isRepeatable,
int repeatableSeed)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean isBernoulli
private final float samplingPercentage
private final boolean isRepeatable
private final int repeatableSeed
Constructor Detail |
---|
public RelOptSamplingParameters(boolean isBernoulli, float samplingPercentage, boolean isRepeatable, int repeatableSeed)
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |