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,
String bridgeTableFieldArrayFilter,
boolean doFlatteningEarly) |
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, String bridgeTableFieldArrayFilter, boolean doFlatteningEarly)
public AbstractCubeTable getAutoJoinTarget()
public JoinClause getJoinClause(StorageCandidate sc)
public void refreshJoinPathColumns()
public String getFromString(String fromTable, DimHQLContext sc, Map<Dimension,CandidateDim> dimsToQuery, CubeQueryContext cubeql) throws LensException
LensException
public String getMergedJoinClause(CubeQueryContext cubeql, DimHQLContext sc, JoinClause joinClause, Map<Dimension,CandidateDim> dimsToQuery) throws LensException
LensException
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, Collection<String> candColumns, Map<Dimension,CandidateDim> dimsToQuery) throws LensException
cube
- dimsToQuery
- LensException
public void pruneAllPathsForCandidateDims(Map<Dimension,Set<CandidateDim>> candidateDims) throws LensException
candidateDims
- candidate dimensionsLensException
public Set<Dimension> pickOptionalTables(DimHQLContext sc, 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<StorageCandidate,JoinClause> getFactClauses()
@Generated(value="lombok") public JoinClause getMinCostClause()
@Generated(value="lombok") public void setMinCostClause(JoinClause minCostClause)
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.