public class VdsStreamingSearcher extends VespaBackEndSearcher
Modifier and Type | Class and Description |
---|---|
private static class |
VdsStreamingSearcher.VdsVisitorFactory |
VespaBackEndSearcher.FillHitsResult
Modifier and Type | Field and Description |
---|---|
private static Logger |
log |
private com.yahoo.messagebus.routing.Route |
route |
private String |
searchClusterConfigId
The configId used to access the searchcluster.
|
private String |
storageClusterRouteSpec
The route to the storage cluster.
|
static String |
STREAMING_STATISTICS |
private static com.yahoo.processing.request.CompoundName |
streamingGroupname |
private static com.yahoo.processing.request.CompoundName |
streamingSelection |
private static com.yahoo.processing.request.CompoundName |
streamingUserid |
private VisitorFactory |
visitorFactory |
cacheControl, PACKET_COMPRESSION_LIMIT, PACKET_COMPRESSION_TYPE, TRACE_DISABLE
Constructor and Description |
---|
VdsStreamingSearcher() |
VdsStreamingSearcher(VisitorFactory visitorFactory) |
Modifier and Type | Method and Description |
---|---|
private FastHit |
buildSummaryHit(Query query,
com.yahoo.vdslib.SearchResult.Hit hit) |
protected void |
doPartialFill(Result result,
String summaryClass) |
Result |
doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution)
Searches a search cluster
This is an endpoint - searchers will never propagate the search to any nested searcher.
|
(package private) String |
getSearchClusterConfigId() |
(package private) String |
getStorageClusterRouteSpec() |
private static void |
lazyTrace(Query query,
int level,
Object... args) |
Pong |
ping(Ping ping,
Execution execution)
Send a ping request downwards to probe if this searcher chain is in functioning order
|
void |
setSearchClusterConfigId(String clusterName) |
void |
setStorageClusterRouteSpec(String storageClusterRouteSpec) |
(package private) static boolean |
verifyDocId(String id,
Query query,
boolean skippedEarlierResult) |
addMetaInfo, cacheLookupTwoPhase, ensureInstanceOf, fill, fillHits, getCacheControl, getDefaultDocsumClass, getDocsumDefinitionSet, getDocumentDatabase, getName, getSearcher, hitIterator, init, isLoggingFine, search, summaryNeedsQuery, transformQuery
ensureFilled, getLogger, process, toString
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
private static final com.yahoo.processing.request.CompoundName streamingUserid
private static final com.yahoo.processing.request.CompoundName streamingGroupname
private static final com.yahoo.processing.request.CompoundName streamingSelection
public static final String STREAMING_STATISTICS
private VisitorFactory visitorFactory
private static final Logger log
private com.yahoo.messagebus.routing.Route route
private String searchClusterConfigId
private String storageClusterRouteSpec
public VdsStreamingSearcher()
public VdsStreamingSearcher(VisitorFactory visitorFactory)
String getSearchClusterConfigId()
String getStorageClusterRouteSpec()
public final void setSearchClusterConfigId(String clusterName)
public final void setStorageClusterRouteSpec(String storageClusterRouteSpec)
protected void doPartialFill(Result result, String summaryClass)
doPartialFill
in class VespaBackEndSearcher
public Result doSearch2(Query query, QueryPacket queryPacket, CacheKey cacheKey, Execution execution)
VespaBackEndSearcher
doSearch2
in class VespaBackEndSearcher
query
- the query to searchqueryPacket
- the serialized query representation to pass to the search clustercacheKey
- the cache key created from the query packet, or null if caching is not usedexecution
- the query execution contextpublic Pong ping(Ping ping, Execution execution)
PingableSearcher
ping
in class PingableSearcher
Copyright © 2018. All rights reserved.