|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.parse.SamplePruner
public class SamplePruner
This class stores the mapping from table alias to the parse tree information of the table sample clause(stored in the TableSample class).
Constructor Summary | |
---|---|
SamplePruner()
|
|
SamplePruner(String alias,
TableSample tableSample)
Constructs the SamplePruner given the table alias and the table sample |
Method Summary | |
---|---|
String |
getTabAlias()
Gets the table alias |
TableSample |
getTableSample()
Gets the parse information of the associated table sample clause |
org.apache.hadoop.fs.Path[] |
prune(Partition part)
Prunes to get all the files in the partition that satisfy the TABLESAMPLE clause |
void |
setTabAlias(String tabAlias)
Sets the table alias |
void |
setTableSample(TableSample tableSample)
Sets the parse information of the associated table sample clause |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SamplePruner()
public SamplePruner(String alias, TableSample tableSample)
alias
- The alias of the table specified in the querytableSample
- The parse infromation of the TABLESAMPLE clauseMethod Detail |
---|
public String getTabAlias()
public void setTabAlias(String tabAlias)
tabAlias
- The table alias as specified in the querypublic TableSample getTableSample()
public void setTableSample(TableSample tableSample)
tableSample
- Information related to the table sample clausepublic org.apache.hadoop.fs.Path[] prune(Partition part) throws SemanticException
part
- The partition to prune
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |