public class CandidateFact extends Object implements CandidateTable
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Modifier and Type | Method and Description |
|---|---|
void |
copyASTs(CubeQueryContext cubeql) |
boolean |
equals(Object obj) |
AbstractCubeTable |
getBaseTable()
Get base table of the candidate table
|
Collection<String> |
getColumns()
Get columns of candidate table
|
List<Integer> |
getDimFieldIndices() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getGroupByAST() |
String |
getGroupbyTree() |
String |
getGroupByTree() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getHavingAST() |
String |
getHavingTree() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getJoinTree() |
String |
getName()
Get name of the candidate table
|
org.apache.hadoop.hive.ql.parse.ASTNode |
getSelectAST() |
List<Integer> |
getSelectIndices() |
String |
getSelectTree() |
String |
getStorageString(String alias)
Get storage string of the base table alias passed
|
CubeFactTable |
getTable()
Get candidate table
|
Set<String> |
getTimePartCols(CubeQueryContext query) |
org.apache.hadoop.hive.ql.parse.ASTNode |
getWhereAST() |
String |
getWhereClause(String storageTable) |
String |
getWhereTree() |
int |
hashCode() |
boolean |
isValidForTimeRange(TimeRange timeRange) |
void |
setHavingAST(org.apache.hadoop.hive.ql.parse.ASTNode havingAST) |
void |
setSelectAST(org.apache.hadoop.hive.ql.parse.ASTNode selectAST) |
void |
setStorageTables(Set<String> storageTables) |
void |
setWhereAST(org.apache.hadoop.hive.ql.parse.ASTNode whereAST) |
String |
toString() |
void |
updateASTs(CubeQueryContext cubeql)
Update the ASTs to include only the fields queried from this fact, in all the expressions
|
void |
updateTimeranges(CubeQueryContext cubeql) |
getPartsQueried, getStorageTablespublic Collection<String> getColumns()
CandidateTablegetColumns in interface CandidateTablepublic boolean isValidForTimeRange(TimeRange timeRange)
public void copyASTs(CubeQueryContext cubeql) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticExceptionpublic void updateTimeranges(CubeQueryContext cubeql) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticExceptionpublic void updateASTs(CubeQueryContext cubeql) throws org.apache.hadoop.hive.ql.parse.SemanticException
cubeql - org.apache.hadoop.hive.ql.parse.SemanticExceptionpublic String getStorageString(String alias)
CandidateTablegetStorageString in interface CandidateTablepublic AbstractCubeTable getBaseTable()
CandidateTablegetBaseTable in interface CandidateTablepublic CubeFactTable getTable()
CandidateTablegetTable in interface CandidateTablepublic String getName()
CandidateTablegetName in interface CandidateTablepublic String getSelectTree()
public String getWhereTree()
public String getHavingTree()
public String getGroupbyTree()
public org.apache.hadoop.hive.ql.parse.ASTNode getSelectAST()
public void setSelectAST(org.apache.hadoop.hive.ql.parse.ASTNode selectAST)
selectAST - the selectAST to setpublic org.apache.hadoop.hive.ql.parse.ASTNode getWhereAST()
public void setWhereAST(org.apache.hadoop.hive.ql.parse.ASTNode whereAST)
whereAST - the whereAST to setpublic org.apache.hadoop.hive.ql.parse.ASTNode getHavingAST()
public void setHavingAST(org.apache.hadoop.hive.ql.parse.ASTNode havingAST)
havingAST - the havingAST to setpublic org.apache.hadoop.hive.ql.parse.ASTNode getGroupByAST()
public String getGroupByTree()
public Set<String> getTimePartCols(CubeQueryContext query) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticExceptionpublic org.apache.hadoop.hive.ql.parse.ASTNode getJoinTree()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.