public class CandidateFact extends Object implements CandidateTable
| 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
|
int |
getNumQueriedParts() |
Set<FactPartition> |
getPartsQueried()
Get partitions queried
|
Map<TimeRange,Map<String,LinkedHashSet<FactPartition>>> |
getRangeToStoragePartMap() |
Map<TimeRange,Map<String,String>> |
getRangeToStorageWhereMap() |
Map<TimeRange,String> |
getRangeToWhereClause() |
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
|
Map<String,String> |
getStorgeWhereClauseMap() |
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) |
public Collection<String> getColumns()
CandidateTablegetColumns in interface CandidateTablepublic boolean isValidForTimeRange(TimeRange timeRange)
public void copyASTs(CubeQueryContext cubeql) throws LensException
LensExceptionpublic void updateTimeranges(CubeQueryContext cubeql) throws LensException
LensExceptionpublic void updateASTs(CubeQueryContext cubeql) throws LensException
cubeql - LensExceptionpublic 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 LensException
LensExceptionpublic org.apache.hadoop.hive.ql.parse.ASTNode getJoinTree()
@Generated(value="lombok") public Set<String> getStorageTables()
CandidateTablegetStorageTables in interface CandidateTable@Generated(value="lombok") public int getNumQueriedParts()
@Generated(value="lombok") public Set<FactPartition> getPartsQueried()
CandidateTablegetPartsQueried in interface CandidateTable@Generated(value="lombok") public Map<TimeRange,String> getRangeToWhereClause()
@Generated(value="lombok") public Map<String,String> getStorgeWhereClauseMap()
@Generated(value="lombok") public Map<TimeRange,Map<String,LinkedHashSet<FactPartition>>> getRangeToStoragePartMap()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.