public class GraphHandler extends RequestHandlerBase implements SolrCoreAware, PermissionNameProvider
Solr Request Handler for graph traversal with streaming functions that responds with GraphML markup.
It loads the default set of streaming expression functions via DefaultStreamFactory
.
To add additional functions, just define them as plugins in solrconfig.xml via
<expressible name="count" class="org.apache.solr.client.solrj.io.stream.RecordCountStream" />
The @deprecated configuration method as of Solr 8.5 is
<lst name="streamFunctions">
<str name="group">org.apache.solr.client.solrj.io.stream.ReducerStream</str>
<str name="count">org.apache.solr.client.solrj.io.stream.RecordCountStream</str>
</lst>
Modifier and Type | Class and Description |
---|---|
static class |
GraphHandler.DummyErrorStream |
static class |
GraphHandler.TimerStream |
PermissionNameProvider.Name
SolrInfoBean.Category, SolrInfoBean.Group
appends, defaults, httpCaching, initArgs, invariants, solrMetricsContext
ANY, NULL, values
TYPE
Constructor and Description |
---|
GraphHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Simple one or two line description
|
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext request) |
String |
getSource() |
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
inform(SolrCore core) |
getApis, getCategory, getInitArgs, getMetricNames, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistry, getMetricsSnapshot, registerMetricName
close, getUniqueMetricTag, initializeMetrics
registerV1, registerV2
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName
in interface PermissionNameProvider
public void inform(SolrCore core)
inform
in interface SolrCoreAware
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
public String getDescription()
SolrInfoBean
getDescription
in interface SolrInfoBean
getDescription
in class RequestHandlerBase
public String getSource()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.