public class AutoJoinContext extends Object
Constructor and Description |
---|
AutoJoinContext(Map<Aliased<Dimension>,List<JoinPath>> allPaths,
Set<Dimension> requiredDimensions,
Map<AbstractCubeTable,org.apache.hadoop.hive.ql.parse.JoinType> tableJoinTypeMap,
AbstractCubeTable autoJoinTarget,
String joinTypeCfg,
boolean joinsResolved,
boolean flattenBridgeTables,
String bridgeTableFieldAggr) |
public AutoJoinContext(Map<Aliased<Dimension>,List<JoinPath>> allPaths, Set<Dimension> requiredDimensions, Map<AbstractCubeTable,org.apache.hadoop.hive.ql.parse.JoinType> tableJoinTypeMap, AbstractCubeTable autoJoinTarget, String joinTypeCfg, boolean joinsResolved, boolean flattenBridgeTables, String bridgeTableFieldAggr)
public AbstractCubeTable getAutoJoinTarget()
public void refreshJoinPathColumns()
public String getFromString(String fromTable, CandidateFact fact, Set<Dimension> qdims, Map<Dimension,CandidateDim> dimsToQuery, CubeQueryContext cubeql) throws LensException
LensException
public String getMergedJoinClause(CubeQueryContext cubeql, JoinClause joinClause, Map<Dimension,CandidateDim> dimsToQuery)
public Set<Dimension> getDimsOnPath(Map<Aliased<Dimension>,List<TableRelationship>> joinChain, Set<Dimension> qdims)
public boolean isJoinsResolved()
public Set<String> getAllJoinPathColumnsOfTable(AbstractCubeTable table)
public void pruneAllPaths(CubeInterface cube, Set<CandidateFact> cfacts, Map<Dimension,CandidateDim> dimsToQuery) throws LensException
LensException
public void pruneAllPathsForCandidateDims(Map<Dimension,Set<CandidateDim>> candidateDims) throws LensException
candidateDims
- candidate dimensionsLensException
public Set<Dimension> pickOptionalTables(CandidateFact fact, Set<Dimension> qdims, CubeQueryContext cubeql) throws LensException
LensException
public boolean isReachableDim(Dimension dim)
@Generated(value="lombok") public Map<AbstractCubeTable,org.apache.hadoop.hive.ql.parse.JoinType> getTableJoinTypeMap()
@Generated(value="lombok") public Map<Aliased<Dimension>,Map<AbstractCubeTable,List<String>>> getJoinPathFromColumns()
@Generated(value="lombok") public Map<Aliased<Dimension>,Map<AbstractCubeTable,List<String>>> getJoinPathToColumns()
@Generated(value="lombok") public Map<CandidateFact,JoinClause> getFactClauses()
@Generated(value="lombok") public JoinClause getMinCostClause()
@Generated(value="lombok") public void setMinCostClause(JoinClause minCostClause)
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.