Uses of Class
com.yahoo.search.result.Hit
-
Packages that use Hit Package Description com.yahoo.prelude.fastsearch com.yahoo.search The top level classes of the search container. A Query represents the incoming request, which produces a Result by chained execution of a set of Searchers.com.yahoo.search.grouping.result com.yahoo.search.pagetemplates.result com.yahoo.search.rendering com.yahoo.search.result The content of a Result produced in response to a Query.com.yahoo.search.statistics -
-
Uses of Hit in com.yahoo.prelude.fastsearch
Subclasses of Hit in com.yahoo.prelude.fastsearch Modifier and Type Class Description class
FastHit
A regular hit from a Vespa backendclass
GroupingListHit
Methods in com.yahoo.prelude.fastsearch that return types with arguments of type Hit Modifier and Type Method Description static java.util.Comparator<Hit>
SortDataHitSorter. getComparator(Sorting sorting, java.util.Comparator<Hit> fallback)
Methods in com.yahoo.prelude.fastsearch with parameters of type Hit Modifier and Type Method Description int
FastHit. compareTo(Hit other)
static boolean
SortDataHitSorter. isSortable(Hit hit, Sorting sorting)
Method parameters in com.yahoo.prelude.fastsearch with type arguments of type Hit Modifier and Type Method Description static java.util.Comparator<Hit>
SortDataHitSorter. getComparator(Sorting sorting, java.util.Comparator<Hit> fallback)
static void
SortDataHitSorter. sort(HitGroup hitGroup, java.util.List<Hit> hits)
-
Uses of Hit in com.yahoo.search
Methods in com.yahoo.search with parameters of type Hit Modifier and Type Method Description protected void
Result. traceExtraHitProperties(java.lang.StringBuilder hitBuffer, Hit hit)
For tracing custom properties of a hit, see trace(String). -
Uses of Hit in com.yahoo.search.grouping.result
Subclasses of Hit in com.yahoo.search.grouping.result Modifier and Type Class Description class
AbstractList
class
Group
This class represents a single group in the grouping result model.class
GroupList
This class represents a labeled group list in the grouping result model.class
HitList
This class represents a labeled hit list in the grouping result model.class
RootGroup
This class represents the rootGroup
in the grouping result model. -
Uses of Hit in com.yahoo.search.pagetemplates.result
Subclasses of Hit in com.yahoo.search.pagetemplates.result Modifier and Type Class Description class
SectionHitGroup
A hit group corresponding to a section - contains some additional information in proper getters and setters which is used during rendering. -
Uses of Hit in com.yahoo.search.rendering
Methods in com.yahoo.search.rendering with parameters of type Hit Modifier and Type Method Description abstract void
SectionedRenderer. hit(WRITER writer, Hit hit)
Called when a Hit is encountered.protected void
JsonRenderer. renderAllFields(Hit hit)
protected void
JsonRenderer. renderHit(Hit hit)
void
SyncDefaultRenderer. renderHit(com.yahoo.text.XMLWriter writer, Hit hit, int hitno)
Renders this hit as xml.protected void
JsonRenderer. renderHitContents(Hit hit)
protected void
JsonRenderer. renderTotalHitCount(Hit hit)
protected boolean
JsonRenderer. shouldRender(Hit hit)
-
Uses of Hit in com.yahoo.search.result
Subclasses of Hit in com.yahoo.search.result Modifier and Type Class Description class
DefaultErrorHit
A hit which holds a list of error conditions in a result.class
HitGroup
A group of ordered hits.Methods in com.yahoo.search.result that return Hit Modifier and Type Method Description Hit
HitGroup. add(Hit hit)
Adds a hit to this group.Hit
Hit. clone()
Hit
HitGroup. get(int index)
Returns the hit at the given (0-base) index in this group of hit (without searching any subgroups).Hit
HitGroup. get(com.yahoo.net.URI id, int depth)
Returns the hit with the given id, or null if there is no hit with this id in this group or any subgroup.Hit
HitGroup. get(java.lang.String id)
Same asHitGroup.get(String,int)
Hit
HitGroup. get(java.lang.String id, int depth)
Hit
DeepHitIterator. next()
Hit
HitIterator. next()
Hit
HitGroup. remove(int index)
Removes a hit from this group (not considering the hits of any subgroup)Hit
HitGroup. remove(com.yahoo.net.URI uri)
Removes a hit from this group or any subgroup.Hit
HitGroup. remove(java.lang.String uriString)
Removes a hit from this group or any subgroupMethods in com.yahoo.search.result that return types with arguments of type Hit Modifier and Type Method Description java.util.List<Hit>
HitGroup. asList()
Returns a read only list view of the hits in thisjava.util.List<Hit>
HitGroup. asUnorderedHits()
Returns a read only list view of the hits in this which is potentially unsorted.com.google.common.util.concurrent.ListenableFuture<com.yahoo.processing.response.DataList<Hit>>
HitGroup. complete()
java.util.Iterator<Hit>
HitGroup. deepIterator()
Returns an iterator that does depth-first traversal of leaf hits of this group.java.util.Comparator<Hit>
HitOrderer. getComparator()
Returns the Comparator that this HitOrderer uses internally to sort hits.java.util.Comparator<Hit>
HitSortOrderer. getComparator()
java.util.Comparator<Hit>
ChainableComparator. getSecondaryComparator()
Returns the comparator to use to compare hits which are equal according to this, or null if nonecom.yahoo.processing.response.IncomingData<Hit>
HitGroup. incoming()
Returns the incoming hit buffer to which new hits can be added to this asynchronous, if supported by the instancejava.util.Iterator<Hit>
HitGroup. iterator()
Returns an iterator of the hits in this group.java.util.Iterator<Hit>
HitGroup. unorderedDeepIterator()
Returns an iterator that does depth-first traversal of leaf hits of this group, in a potentially unsorted order.java.util.Iterator<Hit>
HitGroup. unorderedIterator()
Returns an iterator of the hits in this group in a potentially unsorted order.Methods in com.yahoo.search.result with parameters of type Hit Modifier and Type Method Description void
HitGroup. add(int index, Hit hit)
Adds a hit to this group in the specified index, all existing hits on this index and higher will have their index increased by one.Hit
HitGroup. add(Hit hit)
Adds a hit to this group.int
ChainableComparator. compare(Hit first, Hit second)
Returns the comparison form the secondary comparison, or 0 if the secondary is null.int
FieldComparator. compare(Hit first, Hit second)
Compares hits based on a sorting specification and values stored in hit fields.0int
HitGroupsLastComparator. compare(Hit left, Hit right)
int
MetaHitsFirstComparator. compare(Hit left, Hit right)
int
Hit. compareTo(Hit other)
Compares this hit to another hitjava.lang.Object
FieldComparator. getField(Hit hit, java.lang.String key)
void
HitGroup. set(int index, Hit hit)
Inserts the given hit at the specified index in this group.Method parameters in com.yahoo.search.result with type arguments of type Hit Modifier and Type Method Description void
HitGroup. addAll(java.util.List<Hit> hits)
Adds a list of hits to this group, the sameabstract void
HitOrderer. order(java.util.List<Hit> hits)
Orders the given list of hitsvoid
HitSortOrderer. order(java.util.List<Hit> hits)
Orders the given list of hits according to the sorting given at construction Meta hits are sorted before concrete hits, but have no internal ordering.Constructor parameters in com.yahoo.search.result with type arguments of type Hit Constructor Description ChainableComparator(java.util.Comparator<Hit> secondaryComparator)
Creates this comparator, given a secondary comparator, or null if there is no secondaryDeepHitIterator(java.util.Iterator<Hit> it, boolean ordered)
Create a deep hit iterator based on the given hit iterator.FieldComparator(Sorting sorting, java.util.Comparator<Hit> secondaryComparator)
Creates a field comparator using a sort order with a chained comparatorHitGroup(java.lang.String id, Relevance relevance, com.yahoo.processing.response.IncomingData<Hit> incomingHits)
Creates a group hitHitGroupsLastComparator(java.util.Comparator<Hit> secondaryComparator)
HitIterator(HitGroup hitGroup, java.util.List<Hit> hits)
HitIterator(Result result, java.util.List<Hit> hits)
HitSortOrderer(java.util.Comparator<Hit> comparator)
Create a sort order from a comparator.MetaHitsFirstComparator(java.util.Comparator<Hit> secondaryComparator)
-
Uses of Hit in com.yahoo.search.statistics
Subclasses of Hit in com.yahoo.search.statistics Modifier and Type Class Description static class
PeakQpsSearcher.QpsHit
Meta hit which carries the peak qps and mean qps since the last time this data was requested.
-