Methods
Modifier and Type |
Method and Description |
void |
addAggregateExpr(String expr) |
void |
addColumnsQueried(String alias,
String column) |
void |
addColumnsQueriedWithTimeDimCheck(String alias,
String timeDimColumn) |
void |
addDimPruningMsgs(Dimension dim,
CubeDimensionTable dimtable,
CandidateTablePruneCause msg) |
void |
addExprToAlias(org.apache.hadoop.hive.ql.parse.ASTNode expr,
org.apache.hadoop.hive.ql.parse.ASTNode alias) |
void |
addFactPruningMsgs(CubeFactTable fact,
CandidateTablePruneCause factPruningMsg) |
void |
addOptionalDimTable(String alias,
CandidateTable candidate,
boolean isRequiredInJoin,
String cubeCol,
boolean isRef,
String... cols) |
void |
addOptionalExprDimTable(String dimAlias,
String queriedExpr,
String srcTableAlias,
CandidateTable candidate,
String... cols) |
void |
addOptionalJoinDimTable(String alias,
boolean isRequired) |
void |
addQueriedDimAttrs(Set<String> dimAttrs) |
void |
addQueriedExprs(Set<String> exprs) |
void |
addQueriedExprsWithMeasures(Set<String> exprs) |
void |
addQueriedMsrs(Set<String> msrs) |
boolean |
addQueriedTable(String alias) |
void |
addQueriedTimeDimensionCols(String timeDimColName) |
void |
addSelectAlias(String alias,
String spacedAlias) |
Set<String> |
getAggregateExprs() |
String |
getAlias(String expr) |
String |
getAliasForTableName(Named named) |
String |
getAliasForTableName(String tableName) |
AutoJoinContext |
getAutoJoinCtx() |
Cube |
getBaseCube() |
Map<Dimension,Set<CandidateDim>> |
getCandidateDims() |
Map<Dimension,Set<CandidateDim>> |
getCandidateDimTables() |
Set<CandidateFact> |
getCandidateFacts() |
Set<Set<CandidateFact>> |
getCandidateFactSets() |
Map<String,String> |
getColToTableAlias() |
Set<String> |
getColumnsQueried(String tblName) |
org.apache.hadoop.conf.Configuration |
getConf() |
CubeInterface |
getCube() |
AbstractCubeTable |
getCubeTableForAlias(String alias) |
Map<String,AbstractCubeTable> |
getCubeTbls() |
DenormalizationResolver.DenormalizationContext |
getDeNormCtx() |
Set<Dimension> |
getDimensions() |
Map<Dimension,PruneCauses<CubeDimensionTable>> |
getDimPruningMsgs() |
Map<org.apache.lens.cube.parse.CubeQueryContext.QueriedExprColumn,Set<Aliased<Dimension>>> |
getExprColToDim() |
org.apache.lens.cube.parse.ExpressionResolver.ExpressionResolverContext |
getExprCtx() |
Map<String,String> |
getExprToAlias() |
Map<String,String> |
getExprToAliasMap() |
PruneCauses<CubeFactTable> |
getFactPruningMsgs() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getGroupByAST() |
String |
getGroupByTree() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getHavingAST() |
String |
getHavingTree() |
HQLContextInterface |
getHqlContext() |
String |
getInsertClause() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getJoinAST() |
Map<String,JoinChain> |
getJoinchains() |
Map<org.apache.hadoop.hive.ql.parse.QBJoinTree,String> |
getJoinConds() |
Integer |
getLimitValue() |
CubeMetastoreClient |
getMetastoreClient() |
Set<Dimension> |
getNonChainedDimensions() |
String |
getNonExistingParts() |
Map<Aliased<Dimension>,CubeQueryContext.OptionalDimCtx> |
getOptionalDimensionMap() |
Set<Aliased<Dimension>> |
getOptionalDimensions() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getOrderByAST() |
String |
getOrderByTree() |
static String |
getPartitionColumnOfTimeDim(CubeInterface cube,
String timeDimName) |
String |
getPartitionColumnOfTimeDim(String timeDimName) |
Set<String> |
getPartitionColumnsQueried() |
Collection<CandidateDim> |
getPickedDimTables() |
Collection<CandidateFact> |
getPickedFacts() |
org.apache.hadoop.hive.ql.parse.QB |
getQb() |
org.apache.hadoop.hive.ql.parse.QBJoinTree |
getQBJoinTree() |
Set<String> |
getQueriedDimAttrs() |
Set<String> |
getQueriedExprs() |
Set<String> |
getQueriedExprsWithMeasures() |
Set<String> |
getQueriedMsrs() |
AbstractCubeTable |
getQueriedTable(String alias) |
com.google.common.collect.ImmutableSet<String> |
getQueriedTimeDimCols() |
Map<String,Set<Aliased<Dimension>>> |
getRefColToDim() |
String |
getSelectAlias(int index) |
List<String> |
getSelectAliases() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getSelectAST() |
String |
getSelectFinalAlias(int index) |
List<String> |
getSelectFinalAliases() |
String |
getSelectTree() |
Map<String,Set<String>> |
getTblAliasToColumns() |
static String |
getTimeDimOfPartitionColumn(CubeInterface cube,
String partCol) |
String |
getTimeDimOfPartitionColumn(String partCol) |
List<TimeRange> |
getTimeRanges() |
org.apache.hadoop.hive.ql.parse.ASTNode |
getWhereAST() |
String |
getWhereTree() |
boolean |
hasAggregates() |
boolean |
hasCubeInQuery() |
boolean |
hasDimensionInQuery() |
boolean |
isAggregateExpr(String expr) |
boolean |
isAutoJoinResolved() |
boolean |
isCubeMeasure(String col) |
void |
print() |
void |
pruneCandidateFactSet(CandidateTablePruneCause.CandidateTablePruneCode pruneCause)
Prune candidate fact sets with respect to available candidate facts.
|
void |
pruneCandidateFactWithCandidateSet(CandidateTablePruneCause.CandidateTablePruneCode pruneCause)
Prune candidate fact with respect to available candidate fact sets.
|
void |
pruneCandidateFactWithCandidateSet(CandidateTablePruneCause pruneCause) |
void |
setAutoJoinCtx(AutoJoinContext autoJoinCtx) |
void |
setDeNormCtx(DenormalizationResolver.DenormalizationContext deNormCtx) |
void |
setExprCtx(org.apache.lens.cube.parse.ExpressionResolver.ExpressionResolverContext exprCtx) |
void |
setGroupByAST(org.apache.hadoop.hive.ql.parse.ASTNode groupByAST) |
void |
setHavingAST(org.apache.hadoop.hive.ql.parse.ASTNode havingAST) |
void |
setJoinCond(org.apache.hadoop.hive.ql.parse.QBJoinTree qb,
String cond) |
void |
setLimitValue(Integer value) |
void |
setOrderByAST(org.apache.hadoop.hive.ql.parse.ASTNode orderByAST) |
void |
setSelectAST(org.apache.hadoop.hive.ql.parse.ASTNode selectAST) |
void |
setWhereAST(org.apache.hadoop.hive.ql.parse.ASTNode whereAST) |
boolean |
shouldReplaceTimeDimWithPart() |
org.apache.hadoop.hive.ql.parse.ASTNode |
toAST(org.apache.hadoop.hive.ql.Context ctx) |
String |
toHQL() |
void |
updateExprColDim(String tblAlias,
String col,
Aliased<Dimension> dim) |
void |
updateRefColDim(String col,
Aliased<Dimension> dim) |