Class RandomCodec
Codec that assigns per-field random PostingsFormats.
The same field/format assignment will happen regardless of order, a hash is computed up front that determines the mapping. This means fields can be put into things like System.Collections.Generic.HashSet`1s and added to documents in different orders and the test will still be deterministic and reproducable.
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.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class RandomCodec : Lucene46Codec
Constructors
| Improve this Doc View SourceRandomCodec(Random)
Declaration
public RandomCodec(Random random)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Random | random |
RandomCodec(Random, ISet<String>)
Declaration
public RandomCodec(Random random, ISet<string> avoidCodecs)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Random | random | |
| System.Collections.Generic.ISet<System.String> | avoidCodecs |
Properties
| Improve this Doc View SourceDvFormatNames
unique set of docvalues format names this codec knows about
Declaration
public ISet<string> DvFormatNames { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ISet<System.String> |
FormatNames
unique set of format names this codec knows about
Declaration
public ISet<string> FormatNames { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ISet<System.String> |
Methods
| Improve this Doc View SourceGetDocValuesFormatForField(String)
Declaration
public override DocValuesFormat GetDocValuesFormatForField(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type | Description |
|---|---|
| DocValuesFormat |
Overrides
| Improve this Doc View SourceGetPostingsFormatForField(String)
Declaration
public override PostingsFormat GetPostingsFormatForField(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type | Description |
|---|---|
| PostingsFormat |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |