Get a map of the selector aliases keyed by their names.

@param visitable the object to be visited
@return the map from the selector names to their alias (or name if there is no alias); never null but possibly empty
198688
public static Map<SelectorName, SelectorName> getSelectorAliasesByName( Visitable visitable ) {
        // Find all of the selectors that have aliases ...
        final Map<SelectorName, SelectorName> result = new HashMap<SelectorName, SelectorName>();
        Visitors.visitAll(visitable, new Visitors.AbstractVisitor() {
            @Override
            public void visit( AllNodes allNodes ) {
                if (allNodes.hasAlias()) {
                    result.put(allNodes.name(), allNodes.aliasOrName());
                }
            }

            @Override
            public void visit( NamedSelector selector ) {
                if (selector.hasAlias()) {
                    result.put(selector.name(), selector.aliasOrName());
                }
            }
        });
        return result;
    }
603972
public Map<String, RenameOperation> getRenameOperations() {
    Map<String, RenameOperation> renOperations = new TreeMap<String, RenameOperation>();
    for (Entry<String, IOperation> entry : collectionUpdateData.entrySet()) {
      String key = entry.getKey();
      IOperation op = entry.getValue();
      if (op.getOperationType().equals(Type.RENAME)) {
        renOperations.put(key, (RenameOperation)op);
      }
    }
    return renOperations;
  }
38398
public static <A, B> Map<A, B> getNullableMap(final Map map, final Object... path) {
        return getNullable(map, Map.class, path);
    }
1206686
public Collection<XAttributeNameMap> getAvailableMappings() {
		HashSet<XAttributeNameMap> result = new HashSet<XAttributeNameMap>();
		result.addAll(mappings.values());
		return Collections.unmodifiableCollection(result);
	}
39310
@SuppressWarnings("rawtypes")
    public static Map<TypeVariable, Type> getTypeVariableMap(Class<?> clazz) {
        Map<TypeVariable, Type> typeVariableMap = new HashMap<TypeVariable, Type>();
        buildTypeVariableMap(ResolvableType.forClass(clazz), typeVariableMap);

        return typeVariableMap;
    }
8753
public List<Decl.Named> getRegisteredDeclarations(QualifiedName name) {
		Group g = symbolTable.get(name.getUnit());
		if (g != null) {
			return g.getRegisteredDeclarations(name.getName());
		} else {
			return Collections.EMPTY_LIST;
		}
	}
819735
public static <T> Map<String, T> getByName(List<T> namedObjects, Function<T, String> nameFn) {
        return getByName(namedObjects, nameFn, mergeFirst());
    }
544270
public synchronized Collection<String> getNames() {
        if (map == null) {
            return Collections.emptySet();
        }
        return Collections.unmodifiableSet(new HashMap<String,String>(map).keySet());
    }
403336
private static Map<String, Collection<String>> extractQueryMap(final String queryString) {
        final Map<String, Collection<String>> map = new HashMap<>();

        for (final String nvp : queryString.split("&")) {
            final String[] pair = nvp.split("=");
            map.computeIfAbsent(pair[0], k -> {
                List<String> list = new LinkedList<>();
                list.add(pair[1]);
                return list;
            });
        }

        return map;
    }
915797
private HashMap<Xid, SIXAResourceProxy> getLinkLevelXAResourceMap()
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLinkLevelXAResourceMap");
      HashMap<Xid, SIXAResourceProxy> map = ((ClientLinkLevelState)getConversation().getLinkLevelAttachment()).getXidToXAResourceMap();
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getLinkLevelXAResourceMap", map);
      return map;
   }
846496
public Map<String, Object> getSelectorProperties()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getSelectorProperties");
      SibTr.exit(tc, "getSelectorProperties", selectorProperties);
    }
    return selectorProperties;
  }
1187046
@SuppressWarnings("rawtypes")
    public List<String> discoverAndAddMappers(ClassLoader cl) {
        List<String> added = new ArrayList<String>();
        ServiceLoader<QueryResultMapper> availableProviders = ServiceLoader.load(QueryResultMapper.class, cl);
        for (QueryResultMapper<?> mapper : availableProviders) {
            QueryResultMapper<?> existed = knownMappers.putIfAbsent(mapper.getName(), mapper);
            if (existed == null) {
                added.add(mapper.getName());
                logger.debug("Added mapper {} to the registry", mapper.getName());
            } else {
                logger.debug("Mapper {} already existing in the registry", mapper.getName());
            }
        }
        
        return added;
    }
11222
@NotNull
    public Map<String, Set<String>> getIndexNamesAndAliases(String indexPattern) {
        // only request indices matching the name or pattern in `indexPattern` and only get the alias names for each index,
        // not the settings or mappings
        final GetAliases request = new GetAliases.Builder()
                .addIndex(indexPattern)
                // ES 6 changed the "expand_wildcards" default value for the /_alias API from "open" to "all".
                // Since our code expects only open indices to be returned, we have to explicitly set the parameter now.
                .setParameter("expand_wildcards", "open")
                .build();

        final JestResult jestResult = JestUtils.execute(jestClient, request, () -> "Couldn't collect aliases for index pattern " + indexPattern);

        final ImmutableMap.Builder<String, Set<String>> indexAliasesBuilder = ImmutableMap.builder();
        final Iterator<Map.Entry<String, JsonNode>> it = jestResult.getJsonObject().fields();
        while (it.hasNext()) {
            final Map.Entry<String, JsonNode> entry = it.next();
            final String indexName = entry.getKey();
            final JsonNode aliasMetaData = entry.getValue().path("aliases");
            if (aliasMetaData.isObject()) {
                final ImmutableSet<String> aliasNames = ImmutableSet.copyOf(aliasMetaData.fieldNames());
                indexAliasesBuilder.put(indexName, aliasNames);
            }
        }

        return indexAliasesBuilder.build();
    }
857589
public static <T> List<T> getNullableList(final Map map, final Class<T> clazz, final Object... path) {
        return (List<T>) getNullable(map, List.class, path);
    }
1312849
@Override
    public Collection<String> getSlaveDataSourceNames() {
        if (disabledDataSourceNames.isEmpty()) {
            return super.getSlaveDataSourceNames();
        }
        Collection<String> result = new LinkedList<>(super.getSlaveDataSourceNames());
        result.removeAll(disabledDataSourceNames);
        return result;
    }
220521
public static Map mapKeys(Mapper mapper, Map map) {
        return mapKeys(mapper, map, false);
    }
845745
public Map<String, String> getLinks() {
        if (links == null) {
            return ImmutableMap.of();
        }
        return ImmutableMap.copyOf(links);
    }