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
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.Codecs
Assembly: Lucene.Net.dll
Syntax
public abstract class FilterCodec : CodecConstructors
| Improve this Doc View SourceFilterCodec(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 Sourcem_delegate
The codec to filter.
Declaration
protected readonly Codec m_delegateField Value
| Type | Description | 
|---|---|
| Codec | 
Properties
| Improve this Doc View SourceDocValuesFormat
Declaration
public override DocValuesFormat DocValuesFormat { get; }Property Value
| Type | Description | 
|---|---|
| DocValuesFormat | 
Overrides
| Improve this Doc View SourceFieldInfosFormat
Declaration
public override FieldInfosFormat FieldInfosFormat { get; }Property Value
| Type | Description | 
|---|---|
| FieldInfosFormat | 
Overrides
| Improve this Doc View SourceLiveDocsFormat
Declaration
public override LiveDocsFormat LiveDocsFormat { get; }Property Value
| Type | Description | 
|---|---|
| LiveDocsFormat | 
Overrides
| Improve this Doc View SourceNormsFormat
Declaration
public override NormsFormat NormsFormat { get; }Property Value
| Type | Description | 
|---|---|
| NormsFormat | 
Overrides
| Improve this Doc View SourcePostingsFormat
Declaration
public override PostingsFormat PostingsFormat { get; }Property Value
| Type | Description | 
|---|---|
| PostingsFormat | 
Overrides
| Improve this Doc View SourceSegmentInfoFormat
Declaration
public override SegmentInfoFormat SegmentInfoFormat { get; }Property Value
| Type | Description | 
|---|---|
| SegmentInfoFormat | 
Overrides
| Improve this Doc View SourceStoredFieldsFormat
Declaration
public override StoredFieldsFormat StoredFieldsFormat { get; }Property Value
| Type | Description | 
|---|---|
| StoredFieldsFormat | 
Overrides
| Improve this Doc View SourceTermVectorsFormat
Declaration
public override TermVectorsFormat TermVectorsFormat { get; }Property Value
| Type | Description | 
|---|---|
| TermVectorsFormat |