Package com.yahoo.search.dispatch
Class SearchPath
- java.lang.Object
-
- com.yahoo.search.dispatch.SearchPath
-
public class SearchPath extends Object
Utility class for parsing model.searchPath and filtering a search cluster based on it.- Author:
- ollivir
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchPath.InvalidSearchPathException
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<Node>
selectNodes(String searchPath, SearchCluster cluster)
Parses the search path and select nodes from the given cluster based on it.String
toString()
-
-
-
Method Detail
-
selectNodes
public static List<Node> selectNodes(String searchPath, SearchCluster cluster)
Parses the search path and select nodes from the given cluster based on it.- Parameters:
searchPath
- unparsed search path expression (see: model.searchPath in Search API reference)cluster
- the search cluster from which nodes are selected- Returns:
- list of nodes chosen with the search path, or an empty list in which case some other node selection logic should be used
- Throws:
SearchPath.InvalidSearchPathException
- if the searchPath is malformed
-
-