class VdsVisitor extends com.yahoo.documentapi.VisitorDataHandler implements Visitor
Modifier and Type | Class and Description |
---|---|
private static class |
VdsVisitor.EncodedData |
private static class |
VdsVisitor.MessageBusVisitorSessionFactory |
static interface |
VdsVisitor.VisitorSessionFactory |
Modifier and Type | Field and Description |
---|---|
private Map<Integer,com.yahoo.searchlib.aggregation.Grouping> |
groupingMap |
private List<com.yahoo.vdslib.SearchResult.Hit> |
hits |
private static Logger |
log |
private com.yahoo.documentapi.VisitorParameters |
params |
private Query |
query |
private static com.yahoo.processing.request.CompoundName |
streamingFromtimestamp |
private static com.yahoo.processing.request.CompoundName |
streamingGroupname |
private static com.yahoo.processing.request.CompoundName |
streamingHeadersonly |
private static com.yahoo.processing.request.CompoundName |
streamingLoadtype |
private static com.yahoo.processing.request.CompoundName |
streamingMaxbucketspervisitor |
private static com.yahoo.processing.request.CompoundName |
streamingOrdering |
private static com.yahoo.processing.request.CompoundName |
streamingPriority |
private static com.yahoo.processing.request.CompoundName |
streamingSelection |
private static com.yahoo.processing.request.CompoundName |
streamingTotimestamp |
private static com.yahoo.processing.request.CompoundName |
streamingUserid |
private Map<String,com.yahoo.vdslib.DocumentSummary.Summary> |
summaryMap |
private int |
totalHitCount |
private VdsVisitor.VisitorSessionFactory |
visitorSessionFactory |
Constructor and Description |
---|
VdsVisitor(Query query,
String searchCluster,
com.yahoo.messagebus.routing.Route route) |
VdsVisitor(Query query,
String searchCluster,
com.yahoo.messagebus.routing.Route route,
VdsVisitor.VisitorSessionFactory visitorSessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
doSearch() |
private static void |
encodeQueryData(Query query,
int code,
VdsVisitor.EncodedData ed) |
List<com.yahoo.searchlib.aggregation.Grouping> |
getGroupings() |
List<com.yahoo.vdslib.SearchResult.Hit> |
getHits() |
(package private) static int |
getOrdering(String ordering) |
(package private) static int |
getQueryFlags(Query query) |
com.yahoo.vdslib.VisitorStatistics |
getStatistics() |
Map<String,com.yahoo.vdslib.DocumentSummary.Summary> |
getSummaryMap() |
int |
getTotalHitCount() |
private void |
handleSearchResult(com.yahoo.vdslib.SearchResult sr) |
private void |
handleSummary(com.yahoo.vdslib.DocumentSummary ds) |
private static int |
inferSessionTraceLevel(Query query) |
private void |
mergeGroupingMaps(Map<Integer,byte[]> newGroupingMap) |
void |
onDocumentSummary(com.yahoo.vdslib.DocumentSummary ds) |
void |
onMessage(com.yahoo.messagebus.Message m,
com.yahoo.documentapi.AckToken token) |
void |
onQueryResult(com.yahoo.vdslib.SearchResult sr,
com.yahoo.vdslib.DocumentSummary summary) |
void |
onSearchResult(com.yahoo.vdslib.SearchResult sr) |
private void |
setVisitorParameters(String searchCluster,
com.yahoo.messagebus.routing.Route route) |
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
private static final com.yahoo.processing.request.CompoundName streamingHeadersonly
private static final com.yahoo.processing.request.CompoundName streamingFromtimestamp
private static final com.yahoo.processing.request.CompoundName streamingTotimestamp
private static final com.yahoo.processing.request.CompoundName streamingLoadtype
private static final com.yahoo.processing.request.CompoundName streamingPriority
private static final com.yahoo.processing.request.CompoundName streamingOrdering
private static final com.yahoo.processing.request.CompoundName streamingMaxbucketspervisitor
private static final Logger log
private final com.yahoo.documentapi.VisitorParameters params
private List<com.yahoo.vdslib.SearchResult.Hit> hits
private int totalHitCount
private Query query
private VdsVisitor.VisitorSessionFactory visitorSessionFactory
public VdsVisitor(Query query, String searchCluster, com.yahoo.messagebus.routing.Route route)
public VdsVisitor(Query query, String searchCluster, com.yahoo.messagebus.routing.Route route, VdsVisitor.VisitorSessionFactory visitorSessionFactory)
static int getOrdering(String ordering)
private static int inferSessionTraceLevel(Query query)
private void setVisitorParameters(String searchCluster, com.yahoo.messagebus.routing.Route route)
static int getQueryFlags(Query query)
private static void encodeQueryData(Query query, int code, VdsVisitor.EncodedData ed)
public void doSearch() throws InterruptedException, com.yahoo.document.select.parser.ParseException, TimeoutException
doSearch
in interface Visitor
InterruptedException
com.yahoo.document.select.parser.ParseException
TimeoutException
public com.yahoo.vdslib.VisitorStatistics getStatistics()
getStatistics
in interface Visitor
public void onMessage(com.yahoo.messagebus.Message m, com.yahoo.documentapi.AckToken token)
onMessage
in class com.yahoo.documentapi.VisitorDataHandler
public void onQueryResult(com.yahoo.vdslib.SearchResult sr, com.yahoo.vdslib.DocumentSummary summary)
public void onSearchResult(com.yahoo.vdslib.SearchResult sr)
private void handleSearchResult(com.yahoo.vdslib.SearchResult sr)
public void onDocumentSummary(com.yahoo.vdslib.DocumentSummary ds)
private void handleSummary(com.yahoo.vdslib.DocumentSummary ds)
public final List<com.yahoo.vdslib.SearchResult.Hit> getHits()
public final Map<String,com.yahoo.vdslib.DocumentSummary.Summary> getSummaryMap()
getSummaryMap
in interface Visitor
public final int getTotalHitCount()
getTotalHitCount
in interface Visitor
public final List<com.yahoo.searchlib.aggregation.Grouping> getGroupings()
getGroupings
in interface Visitor
Copyright © 2018. All rights reserved.