Class FederationTarget<T>


  • public final class FederationTarget<T>
    extends java.lang.Object
    Represents a search chain that the federation searcher should send a query to, along with a timeout and custom data reserved for use by the TargetSelector.
    Author:
    Tony Vaagenes
    • Constructor Summary

      Constructors 
      Constructor Description
      FederationTarget​(com.yahoo.component.chain.Chain<Searcher> chain, com.yahoo.search.searchchain.model.federation.FederationOptions federationOptions, T customData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      com.yahoo.component.chain.Chain<Searcher> getChain()  
      T getCustomData()
      Any data that the TargetSelector wants to associate with this target.
      com.yahoo.search.searchchain.model.federation.FederationOptions getFederationOptions()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FederationTarget

        public FederationTarget​(com.yahoo.component.chain.Chain<Searcher> chain,
                                com.yahoo.search.searchchain.model.federation.FederationOptions federationOptions,
                                T customData)
    • Method Detail

      • getChain

        public com.yahoo.component.chain.Chain<Searcher> getChain()
      • getFederationOptions

        public com.yahoo.search.searchchain.model.federation.FederationOptions getFederationOptions()
      • getCustomData

        public T getCustomData()
        Any data that the TargetSelector wants to associate with this target. Owned exclusively by the TargetSelector that created this instance.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object