|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cube.parse.CandidateFact
public class CandidateFact
Holds context of a candidate fact table.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Method Summary | |
---|---|
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()
|
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 |
getWhereTree()
|
int |
hashCode()
|
void |
setHavingAST(org.apache.hadoop.hive.ql.parse.ASTNode havingAST)
|
void |
setSelectAST(org.apache.hadoop.hive.ql.parse.ASTNode selectAST)
|
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)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.lens.cube.parse.CandidateTable |
---|
getPartsQueried, getStorageTables |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public String toString()
toString
in class Object
public Collection<String> getColumns()
CandidateTable
getColumns
in interface CandidateTable
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 boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
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 List<Integer> getSelectIndices()
public List<Integer> getDimFieldIndices()
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |