/** * Add a element symbol to the already created temp group. If added successfully then it will * return the metadata id for the added element. otherwise it will return null. * @param tempGroup - temp group name * @param symbol - element to be added * @return metadata id. */ public TempMetadataID addElementSymbolToTempGroup(String tempGroup, Expression symbol) { TempMetadataID groupID = this.tempGroups.get(tempGroup); if (groupID != null) { TempMetadataID elementID = createElementSymbol(tempGroup, symbol, false); groupID.addElement(elementID); return elementID; } return null; }
/** * Add a element symbol to the already created temp group. If added successfully then it will * return the metadata id for the added element. otherwise it will return null. * @param tempGroup - temp group name * @param symbol - element to be added * @return metadata id. */ public TempMetadataID addElementSymbolToTempGroup(String tempGroup, Expression symbol) { TempMetadataID groupID = this.tempGroups.get(tempGroup); if (groupID != null) { TempMetadataID elementID = createElementSymbol(tempGroup, symbol, false); groupID.addElement(elementID); return elementID; } return null; }
/** * Add a element symbol to the already created temp group. If added successfully then it will * return the metadata id for the added element. otherwise it will return null. * @param tempGroup - temp group name * @param symbol - element to be added * @return metadata id. */ public TempMetadataID addElementSymbolToTempGroup(String tempGroup, Expression symbol) { TempMetadataID groupID = this.tempGroups.get(tempGroup); if (groupID != null) { TempMetadataID elementID = createElementSymbol(tempGroup, symbol, false); groupID.addElement(elementID); return elementID; } return null; }
/** * Add a temp group and all it's elements * @param tempGroup Name of temp group * @param tempGroupDefinition optional definition if the tempGroup * param is the aliased name of a group * @param tempSymbols List of ElementSymbol in position order * @param isVirtual whether or not the group is a virtual group * @param isTempTable whether or not the group is a temporary table */ public TempMetadataID addTempGroup(String tempGroup, List<? extends Expression> tempSymbols, boolean isVirtual, boolean isTempTable) { // Add the temporary group List<TempMetadataID> elementIDs = new ArrayList<TempMetadataID>(tempSymbols.size()); for (Expression symbol : tempSymbols) { TempMetadataID elementID = createElementSymbol(tempGroup, symbol, isTempTable); elementIDs.add(elementID); } // Create group ID TempMetadataID groupID = new TempMetadataID(tempGroup, elementIDs, isVirtual?Type.VIRTUAL:Type.TEMP); this.tempGroups.put(tempGroup, groupID); return groupID; }
/** * Add a temp group and all it's elements * @param tempGroup Name of temp group * @param tempGroupDefinition optional definition if the tempGroup * param is the aliased name of a group * @param tempSymbols List of ElementSymbol in position order * @param isVirtual whether or not the group is a virtual group * @param isTempTable whether or not the group is a temporary table */ public TempMetadataID addTempGroup(String tempGroup, List<? extends Expression> tempSymbols, boolean isVirtual, boolean isTempTable) { // Add the temporary group List<TempMetadataID> elementIDs = new ArrayList<TempMetadataID>(tempSymbols.size()); for (Expression symbol : tempSymbols) { TempMetadataID elementID = createElementSymbol(tempGroup, symbol, isTempTable); elementIDs.add(elementID); } // Create group ID TempMetadataID groupID = new TempMetadataID(tempGroup, elementIDs, isVirtual?Type.VIRTUAL:Type.TEMP); this.tempGroups.put(tempGroup, groupID); return groupID; }
/** * Add a temp group and all it's elements * @param tempGroup Name of temp group * @param tempGroupDefinition optional definition if the tempGroup * param is the aliased name of a group * @param tempSymbols List of ElementSymbol in position order * @param isVirtual whether or not the group is a virtual group * @param isTempTable whether or not the group is a temporary table */ public TempMetadataID addTempGroup(String tempGroup, List<? extends Expression> tempSymbols, boolean isVirtual, boolean isTempTable) { // Add the temporary group List<TempMetadataID> elementIDs = new ArrayList<TempMetadataID>(tempSymbols.size()); for (Expression symbol : tempSymbols) { TempMetadataID elementID = createElementSymbol(tempGroup, symbol, isTempTable); elementIDs.add(elementID); } // Create group ID TempMetadataID groupID = new TempMetadataID(tempGroup, elementIDs, isVirtual?Type.VIRTUAL:Type.TEMP); this.tempGroups.put(tempGroup, groupID); return groupID; }