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()
CandidateTable
getColumns
in interface CandidateTable
public boolean isValidForTimeRange(TimeRange timeRange)
public void copyASTs(CubeQueryContext cubeql) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public void updateTimeranges(CubeQueryContext cubeql) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public void updateASTs(CubeQueryContext cubeql) throws org.apache.hadoop.hive.ql.parse.SemanticException
cubeql
- org.apache.hadoop.hive.ql.parse.SemanticException
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 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.SemanticException
public org.apache.hadoop.hive.ql.parse.ASTNode getJoinTree()
@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 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.