Package org.apache.solr.core
Class SchemaCodecFactory
java.lang.Object
org.apache.solr.core.CodecFactory
org.apache.solr.core.SchemaCodecFactory
- All Implemented Interfaces:
NamedListInitializedPlugin,SolrCoreAware
Per-field CodecFactory implementation, extends Lucene's and returns postings format
implementations according to the schema configuration.
Also, a string argument with name
Also, a string argument with name
compressionMode can be provided to chose between
the different compression options for stored fields- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey to use in init arguments to set the compression mode in the codec.static final org.apache.lucene.codecs.lucene103.Lucene103Codec.Mode -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COMPRESSION_MODE
Key to use in init arguments to set the compression mode in the codec.- See Also:
-
SOLR_DEFAULT_COMPRESSION_MODE
public static final org.apache.lucene.codecs.lucene103.Lucene103Codec.Mode SOLR_DEFAULT_COMPRESSION_MODE
-
-
Constructor Details
-
SchemaCodecFactory
public SchemaCodecFactory()
-
-
Method Details
-
inform
- Specified by:
informin interfaceSolrCoreAware
-
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)
-
getCodec
public org.apache.lucene.codecs.Codec getCodec()- Specified by:
getCodecin classCodecFactory
-