public Set<String> getExpressionNames() { Set<String> exprNames = new HashSet<>(); for (ExprColumn f : getExpressions()) { exprNames.add(f.getName().toLowerCase()); } return exprNames; }
public Set<String> getExpressionNames() { Set<String> exprNames = new HashSet<>(); for (ExprColumn f : getExpressions()) { exprNames.add(f.getName().toLowerCase()); } return exprNames; }
@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; }
private void addAllDirectExpressionsToFlattenedList(ObjectFactory objectFactory, AbstractBaseTable baseTbl, List<XFlattenedColumn> columnList, String chainName) { if (baseTbl.getExpressions() != null) { for (ExprColumn expr : baseTbl.getExpressions()) { XFlattenedColumn fcol = objectFactory.createXFlattenedColumn(); fcol.setExpression(JAXBUtils.xExprColumnFromHiveExprColumn(expr)); fcol.setTableName(baseTbl.getName()); if (chainName != null) { fcol.setChainName(chainName); } columnList.add(fcol); } } }
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); } }