public Collection<String> getGroupsForPartialName(final String partialGroupName) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(partialGroupName); Collection<Table> matches = this.partialNameToFullNameCache.get(partialGroupName); if (matches == null) { matches = getMetadataStore().getGroupsForPartialName(partialGroupName); this.partialNameToFullNameCache.put(partialGroupName, matches); } if (matches.isEmpty()) { return Collections.emptyList(); } Collection<String> filteredResult = new ArrayList<String>(matches.size()); for (Table table : matches) { if (vdbMetaData == null || vdbMetaData.isVisible(table.getParent().getName())) { filteredResult.add(table.getFullName()); } } return filteredResult; }
public Collection<String> getGroupsForPartialName(final String partialGroupName) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(partialGroupName); Collection<Table> matches = this.partialNameToFullNameCache.get(partialGroupName); if (matches == null) { matches = getMetadataStore().getGroupsForPartialName(partialGroupName); this.partialNameToFullNameCache.put(partialGroupName, matches); } if (matches.isEmpty()) { return Collections.emptyList(); } Collection<String> filteredResult = new ArrayList<String>(matches.size()); for (Table table : matches) { if (vdbMetaData == null || vdbMetaData.isVisible(table.getParent().getName())) { filteredResult.add(table.getFullName()); } } return filteredResult; }
public Collection<String> getGroupsForPartialName(final String partialGroupName) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(partialGroupName); Collection<Table> matches = this.partialNameToFullNameCache.get(partialGroupName); if (matches == null) { matches = getMetadataStore().getGroupsForPartialName(partialGroupName); this.partialNameToFullNameCache.put(partialGroupName, matches); } if (matches.isEmpty()) { return Collections.emptyList(); } Collection<String> filteredResult = new ArrayList<String>(matches.size()); for (Table table : matches) { if (vdbMetaData == null || vdbMetaData.isVisible(table.getParent().getName())) { filteredResult.add(table.getFullName()); } } return filteredResult; }