Class TransformerFactory
- java.lang.Object
-
- org.apache.solr.response.transform.TransformerFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
- Direct Known Subclasses:
ChildDocTransformerFactory,CoreAugmenterFactory,DocIdAugmenterFactory,ElevatedMarkerFactory,ExcludedMarkerFactory,ExplainAugmenterFactory,GeoTransformerFactory,RawValueTransformerFactory,ShardAugmenterFactory,SubQueryAugmenterFactory,ValueAugmenterFactory
public abstract class TransformerFactory extends Object implements NamedListInitializedPlugin
New instance for each request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTransformerFactory.FieldRenamerTheTransformerFactory.FieldRenamerinterface should be implemented by anyTransformerFactorycapable of generating transformers that might rename fields, and should implementTransformerFactory.FieldRenamer.create(String, SolrParams, SolrQueryRequest, Map, Set)in place ofcreate(String, SolrParams, SolrQueryRequest)(with the latter method overridden to throwUnsupportedOperationException).
-
Field Summary
Fields Modifier and Type Field Description static Map<String,TransformerFactory>defaultFactoriesprotected StringdefaultUserArgs
-
Constructor Summary
Constructors Constructor Description TransformerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DocTransformercreate(String field, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)voidinit(org.apache.solr.common.util.NamedList<?> args)initwill be called just once, immediately after creation.
-
-
-
Field Detail
-
defaultUserArgs
protected String defaultUserArgs
-
defaultFactories
public static final Map<String,TransformerFactory> defaultFactories
-
-
Method Detail
-
init
public void init(org.apache.solr.common.util.NamedList<?> args)
Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Specified by:
initin interfaceNamedListInitializedPlugin- Parameters:
args- non-null list of initialization parameters (may be empty)
-
create
public abstract DocTransformer create(String field, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
-
-