public abstract class QParserPlugin extends Object implements NamedListInitializedPlugin, SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_QTYPE
internal use - name of the default parser
|
static Map<String,QParserPlugin> |
standardPlugins
Internal use - name to parser for the builtin parsers.
|
| Constructor and Description |
|---|
QParserPlugin() |
| Modifier and Type | Method and Description |
|---|---|
abstract QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
return a
QParser |
SolrInfoBean.Category |
getCategory()
Category of this component
|
String |
getDescription()
Simple one or two line description
|
Set<String> |
getMetricNames()
Modifiable set of metric names that this component reports (default is null,
which means none).
|
String |
getName()
Simple common usage name, e.g.
|
void |
init(NamedList args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNamepublic static final String DEFAULT_QTYPE
public static final Map<String,QParserPlugin> standardPlugins
QParserPlugin has own instance of standardPlugins.
This leads to cyclic dependencies of static fields and to case when NAME field is not yet initialized.
This result to NPE during initialization.
For every plugin, listed here, NAME field has to be final and static.public abstract QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserpublic void init(NamedList args)
init in interface NamedListInitializedPluginpublic String getName()
SolrInfoBeangetName in interface SolrInfoBeanpublic String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeanpublic SolrInfoBean.Category getCategory()
SolrInfoBeangetCategory in interface SolrInfoBeanpublic Set<String> getMetricNames()
SolrInfoBeanSolrInfoBean.registerMetricName(String)
to capture what metrics names are reported from this component.
NOTE: this set has to allow iteration under modifications.
getMetricNames in interface SolrInfoBeanCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.