/** * Get the list of aliases from the opeerator tree that are needed for the path * @param pathToAliases mapping from path to aliases * @param dir The path to look for **/ public static List<String> doGetAliasesFromPath( Map<Path, ArrayList<String>> pathToAliases, Path dir) { if (pathToAliases == null) { return new ArrayList<String>(); } Path path = getMatchingPath(pathToAliases, dir); return pathToAliases.get(path); }
/** * Get the list of aliases from the opeerator tree that are needed for the path * @param pathToAliases mapping from path to aliases * @param dir The path to look for **/ public static List<String> doGetAliasesFromPath( Map<Path, ArrayList<String>> pathToAliases, Path dir) { if (pathToAliases == null) { return new ArrayList<String>(); } Path path = getMatchingPath(pathToAliases, dir); return pathToAliases.get(path); }
/** * Get the list of aliases from the opeerator tree that are needed for the path * @param pathToAliases mapping from path to aliases * @param dir The path to look for **/ public static List<String> doGetAliasesFromPath( Map<String, ArrayList<String>> pathToAliases, Path dir) { if (pathToAliases == null) { return new ArrayList<String>(); } String path = getMatchingPath(pathToAliases, dir); return pathToAliases.get(path); }
/** * Get the list of operatators from the opeerator tree that are needed for the path * @param pathToAliases mapping from path to aliases * @param aliasToWork The operator tree to be invoked for a given alias * @param dir The path to look for **/ public static List<Operator<? extends Serializable>> doGetAliasesFromPath( Map<String, ArrayList<String>> pathToAliases, Map<String, Operator<? extends Serializable>> aliasToWork, Path dir) { String path = getMatchingPath(pathToAliases, dir); List<Operator<? extends Serializable>> opList = new ArrayList<Operator<? extends Serializable>>(); List<String> aliases = pathToAliases.get(path); for (String alias : aliases) { opList.add(aliasToWork.get(alias)); } return opList; }