public class SearchChain extends com.yahoo.component.chain.Chain<Searcher>
The searchers may have dependencies which define an ordering of the searchers of this chain.
Search chains may inherit the searchers of other chains and modify the inherited set of searchers.
Search chains may be versioned. The version and name string combined is an unique identifier of a search chain.
A search chain cannot be modified once constructed.
Constructor and Description |
---|
SearchChain(com.yahoo.component.chain.Chain<Searcher> chain)
For internal use only!
|
SearchChain(com.yahoo.component.ComponentId id) |
SearchChain(com.yahoo.component.ComponentId id,
Collection<Searcher> searchers) |
SearchChain(com.yahoo.component.ComponentId id,
Collection<Searcher> searchers,
Collection<com.yahoo.component.chain.Phase> phases)
Creates a search chain.
|
SearchChain(com.yahoo.component.ComponentId id,
Searcher... searchers) |
Modifier and Type | Method and Description |
---|---|
List<Searcher> |
searchers()
Returns an unmodifiable list of the searchers this search chain executs, in resolved execution order.
|
String |
toString() |
public SearchChain(com.yahoo.component.ComponentId id)
public SearchChain(com.yahoo.component.ComponentId id, Searcher... searchers)
public SearchChain(com.yahoo.component.ComponentId id, Collection<Searcher> searchers)
public SearchChain(com.yahoo.component.ComponentId id, Collection<Searcher> searchers, Collection<com.yahoo.component.chain.Phase> phases)
This search chain makes a copy of the given lists before return and does not modify the argument lists.
The total set of searchers included in this chain will be
searchers
.
searchers()
on all search chains in inherited
.
If a searcher with a given name is present in the searchers
list in any version, that
version will be used, and a searcher with that name will never be included from an inherited search chain.
If the same searcher exists in multiple inherited chains, the highest version will be used.
excluded
list.
id
- the id of this search chainsearchers
- the searchers of this chain, or null if nonephases
- the phases of this chainpublic SearchChain(com.yahoo.component.chain.Chain<Searcher> chain)
Copyright © 2018. All rights reserved.