public class CandidateFact extends Object implements CandidateTable
Modifier and Type | Method and Description |
---|---|
String |
addAndGetAliasFromSelect(org.apache.hadoop.hive.ql.parse.ASTNode ast,
AliasDecider aliasDecider) |
void |
addToHaving(org.apache.hadoop.hive.ql.parse.ASTNode ast) |
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() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getHavingAST() |
String |
getHavingTree() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getJoinAST() |
Integer |
getLimitValue() |
String |
getName()
Get name of the candidate table
|
int |
getNumQueriedParts() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getOrderByAST() |
String |
getOrderByTree() |
Set<FactPartition> |
getPartsQueried()
Get partitions queried
|
Map<TimeRange,Map<String,LinkedHashSet<FactPartition>>> |
getRangeToStoragePartMap() |
Map<TimeRange,Map<String,String>> |
getRangeToStorageWhereMap() |
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
|
Set<String> |
getStorageTables()
Get storage tables corresponding to this candidate
|
org.apache.hadoop.hive.ql.parse.ASTNode |
getStorageWhereClause(String storageTable) |
Map<String,org.apache.hadoop.hive.ql.parse.ASTNode> |
getStorgeWhereClauseMap() |
CubeFactTable |
getTable()
Get candidate table
|
Set<String> |
getTimePartCols(CubeQueryContext query) |
org.apache.hadoop.hive.ql.parse.ASTNode |
getWhereAST() |
String |
getWhereTree() |
int |
hashCode() |
boolean |
isExpressionAnswerable(org.apache.hadoop.hive.ql.parse.ASTNode node,
CubeQueryContext context) |
boolean |
isValidForTimeRange(TimeRange timeRange) |
void |
setGroupByAST(org.apache.hadoop.hive.ql.parse.ASTNode groupByAST) |
void |
setHavingAST(org.apache.hadoop.hive.ql.parse.ASTNode havingAST) |
void |
setJoinAST(org.apache.hadoop.hive.ql.parse.ASTNode joinAST) |
void |
setLimitValue(Integer limitValue) |
void |
setOrderByAST(org.apache.hadoop.hive.ql.parse.ASTNode orderByAST) |
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
|
public Collection<String> getColumns()
CandidateTable
getColumns
in interface CandidateTable
public boolean isValidForTimeRange(TimeRange timeRange)
public void addToHaving(org.apache.hadoop.hive.ql.parse.ASTNode ast)
public String addAndGetAliasFromSelect(org.apache.hadoop.hive.ql.parse.ASTNode ast, AliasDecider aliasDecider)
public void copyASTs(CubeQueryContext cubeql) throws LensException
LensException
public org.apache.hadoop.hive.ql.parse.ASTNode getStorageWhereClause(String storageTable)
public boolean isExpressionAnswerable(org.apache.hadoop.hive.ql.parse.ASTNode node, CubeQueryContext context) throws LensException
LensException
public void updateASTs(CubeQueryContext cubeql) throws LensException
cubeql
- LensException
public String getStorageString(String alias)
CandidateTable
getStorageString
in interface CandidateTable
public AbstractCubeTable getBaseTable()
CandidateTable
getBaseTable
in interface CandidateTable
public CubeFactTable getTable()
CandidateTable
getTable
in interface CandidateTable
public String getName()
CandidateTable
getName
in interface CandidateTable
public String getSelectTree()
public String getWhereTree()
public String getHavingTree()
public String getOrderByTree()
public String getGroupByTree()
public Set<String> getTimePartCols(CubeQueryContext query) throws LensException
LensException
@Generated(value="lombok") public Set<String> getStorageTables()
CandidateTable
getStorageTables
in interface CandidateTable
@Generated(value="lombok") public int getNumQueriedParts()
@Generated(value="lombok") public Set<FactPartition> getPartsQueried()
CandidateTable
getPartsQueried
in interface CandidateTable
@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getSelectAST()
@Generated(value="lombok") public void setSelectAST(org.apache.hadoop.hive.ql.parse.ASTNode selectAST)
selectAST
- the selectAST to set@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getWhereAST()
@Generated(value="lombok") public void setWhereAST(org.apache.hadoop.hive.ql.parse.ASTNode whereAST)
whereAST
- the whereAST to set@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getGroupByAST()
@Generated(value="lombok") public void setGroupByAST(org.apache.hadoop.hive.ql.parse.ASTNode groupByAST)
@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getHavingAST()
@Generated(value="lombok") public void setHavingAST(org.apache.hadoop.hive.ql.parse.ASTNode havingAST)
havingAST
- the havingAST to set@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getJoinAST()
@Generated(value="lombok") public void setJoinAST(org.apache.hadoop.hive.ql.parse.ASTNode joinAST)
@Generated(value="lombok") public org.apache.hadoop.hive.ql.parse.ASTNode getOrderByAST()
@Generated(value="lombok") public void setOrderByAST(org.apache.hadoop.hive.ql.parse.ASTNode orderByAST)
@Generated(value="lombok") public Integer getLimitValue()
@Generated(value="lombok") public void setLimitValue(Integer limitValue)
@Generated(value="lombok") public Map<String,org.apache.hadoop.hive.ql.parse.ASTNode> getStorgeWhereClauseMap()
@Generated(value="lombok") public Map<TimeRange,Map<String,LinkedHashSet<FactPartition>>> getRangeToStoragePartMap()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.