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.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
FilterCodec
Assembly: Lucene.Net.dll
Syntax
public abstract class FilterCodec : Codec
Constructors
|
Improve this Doc
View Source
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.
Declaration
protected FilterCodec(Codec delegate)
Parameters
Type |
Name |
Description |
Codec |
delegate |
|
Fields
|
Improve this Doc
View Source
m_delegate
Declaration
protected readonly Codec m_delegate
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public override DocValuesFormat DocValuesFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override FieldInfosFormat FieldInfosFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override LiveDocsFormat LiveDocsFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override NormsFormat NormsFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
PostingsFormat
Declaration
public override PostingsFormat PostingsFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override SegmentInfoFormat SegmentInfoFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override StoredFieldsFormat StoredFieldsFormat { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override TermVectorsFormat TermVectorsFormat { get; }
Property Value
Overrides