public class StreamHandler extends RequestHandlerBase implements SolrCoreAware, PermissionNameProvider
Solr Request Handler for streaming data.
It loads a Solr specific set of streaming expression functions via SolrDefaultStreamFactory
.
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" />
Modifier and Type | Class and Description |
---|---|
static class |
StreamHandler.DaemonCollectionStream |
static class |
StreamHandler.DaemonResponseStream |
static class |
StreamHandler.DummyErrorStream |
static class |
StreamHandler.ExpressibleHolder |
static class |
StreamHandler.TimerStream |
PermissionNameProvider.Name
SolrInfoBean.Category, SolrInfoBean.Group
appends, defaults, httpCaching, initArgs, invariants, solrMetricsContext
ANY, NULL, values
TYPE
Constructor and Description |
---|
StreamHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
addExpressiblePlugins(StreamFactory streamFactory,
SolrCore core) |
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 static void addExpressiblePlugins(StreamFactory streamFactory, SolrCore core)
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-2021 Apache Software Foundation. All Rights Reserved.