public Set<String> getJoinChainNames() { Set<String> chainNames = new HashSet<>(); for (JoinChain f : getJoinChains()) { chainNames.add(f.getName().toLowerCase()); } return chainNames; }
public Set<String> getJoinChainNames() { Set<String> chainNames = new HashSet<>(); for (JoinChain f : getJoinChains()) { chainNames.add(f.getName().toLowerCase()); } return chainNames; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } AbstractBaseTable other = (AbstractBaseTable) obj; if (this.getExpressions() == null) { if (other.getExpressions() != null) { return false; } } else if (!this.getExpressions().equals(other.getExpressions())) { return false; } if (this.getJoinChains() == null) { if (other.getJoinChains() != null) { return false; } } else if (!this.getJoinChains().equals(other.getJoinChains())) { return false; } return true; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } AbstractBaseTable other = (AbstractBaseTable) obj; if (this.getExpressions() == null) { if (other.getExpressions() != null) { return false; } } else if (!this.getExpressions().equals(other.getExpressions())) { return false; } if (this.getJoinChains() == null) { if (other.getJoinChains() != null) { return false; } } else if (!this.getJoinChains().equals(other.getJoinChains())) { return false; } return true; }
public AbstractBaseTable(Table tbl) { super(tbl); this.expressions = getExpressions(getName(), getProperties()); exprMap = new HashMap<>(); for (ExprColumn expr : expressions) { exprMap.put(expr.getName().toLowerCase(), expr); } this.joinChains = getJoinChains(this, getJoinChainListPropKey(getName()), getProperties()); chainMap = new HashMap<>(); for (JoinChain chain : joinChains) { chainMap.put(chain.getName().toLowerCase(), chain); } }
public AbstractBaseTable(Table tbl) { super(tbl); this.expressions = getExpressions(getName(), getProperties()); exprMap = new HashMap<>(); for (ExprColumn expr : expressions) { exprMap.put(expr.getName().toLowerCase(), expr); } this.joinChains = getJoinChains(this, getJoinChainListPropKey(getName()), getProperties()); chainMap = new HashMap<>(); for (JoinChain chain : joinChains) { chainMap.put(chain.getName().toLowerCase(), chain); } }
private void addAllChainedColsToFlattenedList(CubeMetastoreClient client, ObjectFactory objectFactory, AbstractBaseTable baseTbl, List<XFlattenedColumn> columnList) throws HiveException, LensException { for (JoinChain chain : baseTbl.getJoinChains()) { Dimension dim = client.getDimension(chain.getDestTable()); addAllDirectAttributesToFlattenedListFromDimension(objectFactory, dim, columnList, chain.getName()); addAllDirectExpressionsToFlattenedList(objectFactory, dim, columnList, chain.getName()); } }