Class CompressingCodec
A codec that uses CompressingStoredFieldsFormat for its stored fields and delegates to Lucene46Codec for everything else.
Inheritance
System.Object
CompressingCodec
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.Compressing
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class CompressingCodec : FilterCodec
Constructors
| Improve this Doc View SourceCompressingCodec(CompressionMode, Int32)
Creates a compressing codec with an empty segment suffix.
Declaration
public CompressingCodec(CompressionMode compressionMode, int chunkSize)
Parameters
Type | Name | Description |
---|---|---|
CompressionMode | compressionMode | |
System.Int32 | chunkSize |
CompressingCodec(String, CompressionMode, Int32)
Creates a compressing codec with a given segmentSuffix
.
Declaration
public CompressingCodec(string segmentSuffix, CompressionMode compressionMode, int chunkSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | segmentSuffix | |
CompressionMode | compressionMode | |
System.Int32 | chunkSize |
Properties
| 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 |
Overrides
Methods
| Improve this Doc View SourceRandomInstance(Random)
Creates a random CompressingCodec that is using an empty segment suffix.
Declaration
public static CompressingCodec RandomInstance(Random random)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random |
Returns
Type | Description |
---|---|
CompressingCodec |
RandomInstance(Random, Boolean)
Creates a random CompressingCodec that is using a segment suffix.
Declaration
public static CompressingCodec RandomInstance(Random random, bool withSegmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
System.Boolean | withSegmentSuffix |
Returns
Type | Description |
---|---|
CompressingCodec |
RandomInstance(Random, Int32, Boolean)
Create a random instance.
Declaration
public static CompressingCodec RandomInstance(Random random, int chunkSize, bool withSegmentSuffix)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
System.Int32 | chunkSize | |
System.Boolean | withSegmentSuffix |
Returns
Type | Description |
---|---|
CompressingCodec |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |