|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.parse.TableSample
public class TableSample
This class stores all the information specified in the TABLESAMPLE clause. e.g. for the clause "FROM t TABLESAMPLE(1 OUT OF 2 ON c1) it will store the numerator 1, the denominator 2 and the list of expressions(in this case c1) in the appropriate fields. The afore-mentioned sampling clause causes the 1st bucket to be picked out of the 2 buckets created by hashing on c1.
Constructor Summary | |
---|---|
TableSample(int num,
int den)
|
|
TableSample(String num,
String den,
ArrayList<ASTNode> exprs)
Constructs the TableSample given the numerator, denominator and the list of ON clause expressions. |
Method Summary | |
---|---|
int |
getDenominator()
Gets the denominator. |
ArrayList<ASTNode> |
getExprs()
Gets the ON part's expression list. |
boolean |
getInputPruning()
Gets the flag that indicates whether input pruning is possible. |
int |
getNumerator()
Gets the numerator. |
void |
setDenominator(int den)
Sets the denominator. |
void |
setExprs(ArrayList<ASTNode> exprs)
Sets the expression list. |
void |
setInputPruning(boolean inputPruning)
Sets the flag that indicates whether input pruning is possible or not. |
void |
setNumerator(int num)
Sets the numerator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableSample(String num, String den, ArrayList<ASTNode> exprs)
num
- The numeratorden
- The denominatorexprs
- The list of expressions in the ON part of the TABLESAMPLE clausepublic TableSample(int num, int den)
Method Detail |
---|
public int getNumerator()
public void setNumerator(int num)
num
- The numeratorpublic int getDenominator()
public void setDenominator(int den)
den
- The denominatorpublic ArrayList<ASTNode> getExprs()
public void setExprs(ArrayList<ASTNode> exprs)
exprs
- The expression listpublic boolean getInputPruning()
public void setInputPruning(boolean inputPruning)
inputPruning
- true if input pruning is possible
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |