Class FilterCodec
A codec that forwards all its method calls to another codec.
Extend this class when you need to reuse the functionality of an existing codec. For example, if you want to build a codec that redefines Lucene46's LiveDocsFormat:
public sealed class CustomCodec : FilterCodec
{
public CustomCodec()
: base("CustomCodec", new Lucene46Codec())
{
}
public override LiveDocsFormat LiveDocsFormat
{
get { return new CustomLiveDocsFormat(); }
}
}
Please note: Don't call ForName(String) from the no-arg constructor of your own codec. When the DefaultCodecFactory loads your own Codec, the DefaultCodecFactory has not yet fully initialized! If you want to extend another Codec, instantiate it directly by calling its constructor.
@lucene.experimental
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class FilterCodec : Codec
Constructors
Name | Description |
---|---|
FilterCodec(Codec) | Sole constructor. When subclassing this codec, create a no-arg ctor and pass the delegate codec and a unique name to this ctor. |
Fields
Name | Description |
---|---|
m_delegate | The codec to filter. |
Properties
Name | Description |
---|---|
DocValuesFormat | |
FieldInfosFormat | |
LiveDocsFormat | |
NormsFormat | |
PostingsFormat | |
SegmentInfoFormat | |
StoredFieldsFormat | |
TermVectorsFormat |