/** * Remove the join chain with name specified * * @param chainName chain name */ public boolean removeJoinChain(String chainName) { if (chainMap.containsKey(chainName.toLowerCase())) { joinChains.remove(getChainByName(chainName)); chainMap.remove(chainName.toLowerCase()); MetastoreUtil.addNameStrings(getProperties(), getJoinChainListPropKey(getName()), joinChains); return true; } return false; }
/** * Remove the join chain with name specified * * @param chainName chain name */ public boolean removeJoinChain(String chainName) { if (chainMap.containsKey(chainName.toLowerCase())) { joinChains.remove(getChainByName(chainName)); chainMap.remove(chainName.toLowerCase()); MetastoreUtil.addNameStrings(getProperties(), getJoinChainListPropKey(getName()), joinChains); return true; } return false; }
/** * Alters the joinchain if already existing or just adds if it is new chain * * @param joinchain join chain */ public void alterJoinChain(JoinChain joinchain) { if (joinchain == null) { throw new NullPointerException("Cannot add null joinchain"); } // Replace dimension if already existing if (chainMap.containsKey(joinchain.getName().toLowerCase())) { joinChains.remove(getChainByName(joinchain.getName())); log.info("Replacing joinchain {} with {}", getChainByName(joinchain.getName()), joinchain); } joinChains.add(joinchain); chainMap.put(joinchain.getName().toLowerCase(), joinchain); MetastoreUtil.addNameStrings(getProperties(), getJoinChainListPropKey(getName()), joinChains); joinchain.addProperties(this); }
/** * Alters the joinchain if already existing or just adds if it is new chain * * @param joinchain join chain */ public void alterJoinChain(JoinChain joinchain) { if (joinchain == null) { throw new NullPointerException("Cannot add null joinchain"); } // Replace dimension if already existing if (chainMap.containsKey(joinchain.getName().toLowerCase())) { joinChains.remove(getChainByName(joinchain.getName())); log.info("Replacing joinchain {} with {}", getChainByName(joinchain.getName()), joinchain); } joinChains.add(joinchain); chainMap.put(joinchain.getName().toLowerCase(), joinchain); MetastoreUtil.addNameStrings(getProperties(), getJoinChainListPropKey(getName()), joinChains); joinchain.addProperties(this); }
xcc.setChainName(crCol.getChainName()); xcc.setRefCol(crCol.getRefColumn()); if (baseTable.getChainByName(crCol.getChainName()) == null) { log.error("Missing chain definition for " + crCol.getChainName()); } else { xcc.setDestTable(baseTable.getChainByName(crCol.getChainName()).getDestTable());
xcc.setChainName(crCol.getChainName()); xcc.setRefCol(crCol.getRefColumn()); if (baseTable.getChainByName(crCol.getChainName()) == null) { log.error("Missing chain definition for " + crCol.getChainName()); } else { xcc.setDestTable(baseTable.getChainByName(crCol.getChainName()).getDestTable());