public boolean isXMLGroup(Object groupID) throws TeiidComponentException, QueryMetadataException { if(groupID instanceof TempMetadataID) { return ((TempMetadataID)groupID).getMetadataType() == Type.XML; } return this.actualMetadata.isXMLGroup(groupID); }
@Override public Collection getGroupsForPartialName(String partialGroupName) throws TeiidComponentException, QueryMetadataException { Collection groups = super.getGroupsForPartialName(partialGroupName); ArrayList<String> allGroups = new ArrayList<String>(groups); for (Map.Entry<String, TempMetadataID> entry : tempStore.getData().entrySet()) { String name = entry.getKey(); if (StringUtil.endsWithIgnoreCase(name, partialGroupName) //don't want to match tables by anything less than the full name, //since this should be a temp or a global temp and in the latter case there's a real metadata entry //alternatively we could check to see if the name is already in the result list && (name.length() == partialGroupName.length() || (entry.getValue().getMetadataType() != Type.TEMP && name.length() > partialGroupName.length() && name.charAt(name.length() - partialGroupName.length() - 1) == '.'))) { allGroups.add(name); } } return allGroups; }
@Override public Collection getGroupsForPartialName(String partialGroupName) throws TeiidComponentException, QueryMetadataException { Collection groups = super.getGroupsForPartialName(partialGroupName); ArrayList<String> allGroups = new ArrayList<String>(groups); for (Map.Entry<String, TempMetadataID> entry : tempStore.getData().entrySet()) { String name = entry.getKey(); if (StringUtil.endsWithIgnoreCase(name, partialGroupName) //don't want to match tables by anything less than the full name, //since this should be a temp or a global temp and in the latter case there's a real metadata entry //alternatively we could check to see if the name is already in the result list && (name.length() == partialGroupName.length() || (entry.getValue().getMetadataType() != Type.TEMP && name.length() > partialGroupName.length() && name.charAt(name.length() - partialGroupName.length() - 1) == '.'))) { allGroups.add(name); } } return allGroups; }
@Override public Collection getGroupsForPartialName(String partialGroupName) throws TeiidComponentException, QueryMetadataException { Collection groups = super.getGroupsForPartialName(partialGroupName); ArrayList<String> allGroups = new ArrayList<String>(groups); for (Map.Entry<String, TempMetadataID> entry : tempStore.getData().entrySet()) { String name = entry.getKey(); if (StringUtil.endsWithIgnoreCase(name, partialGroupName) //don't want to match tables by anything less than the full name, //since this should be a temp or a global temp and in the latter case there's a real metadata entry //alternatively we could check to see if the name is already in the result list && (name.length() == partialGroupName.length() || (entry.getValue().getMetadataType() != Type.TEMP && name.length() > partialGroupName.length() && name.charAt(name.length() - partialGroupName.length() - 1) == '.'))) { allGroups.add(name); } } return allGroups; }
public List getElementIDsInKey(Object keyID) throws TeiidComponentException, QueryMetadataException { if (keyID instanceof List) { return (List)keyID; } if (keyID instanceof TempMetadataID) { TempMetadataID id = (TempMetadataID)keyID; if (id.getMetadataType() == Type.INDEX) { return id.getElements(); } } return this.actualMetadata.getElementIDsInKey(keyID); }
public List getElementIDsInKey(Object keyID) throws TeiidComponentException, QueryMetadataException { if (keyID instanceof List) { return (List)keyID; } if (keyID instanceof TempMetadataID) { TempMetadataID id = (TempMetadataID)keyID; if (id.getMetadataType() == Type.INDEX) { return id.getElements(); } } return this.actualMetadata.getElementIDsInKey(keyID); }
public List getElementIDsInKey(Object keyID) throws TeiidComponentException, QueryMetadataException { if (keyID instanceof List) { return (List)keyID; } if (keyID instanceof TempMetadataID) { TempMetadataID id = (TempMetadataID)keyID; if (id.getMetadataType() == Type.INDEX) { return id.getElements(); } } return this.actualMetadata.getElementIDsInKey(keyID); }
private boolean isSinglePart(GroupSymbol groupSymbol) { return (groupSymbol.getDefinition() != null || (!groupSymbol.isProcedure() && groupSymbol.getMetadataID() instanceof TempMetadataID && ((TempMetadataID) groupSymbol.getMetadataID()) .getMetadataType() != TempMetadataID.Type.SCALAR)); }
private boolean isSinglePart(GroupSymbol groupSymbol) { return (groupSymbol.getDefinition() != null || (!groupSymbol.isProcedure() && groupSymbol.getMetadataID() instanceof TempMetadataID && ((TempMetadataID) groupSymbol.getMetadataID()) .getMetadataType() != TempMetadataID.Type.SCALAR)); }