Class RandomCodec
Lucene.Net.Codecs.Codec that assigns per-field random Lucene.Net.Codecs.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.
Inheritance
System.Object
    Lucene.Net.Codecs.Codec
    Lucene.Net.Codecs.Lucene46.Lucene46Codec
    RandomCodec
  Inherited Members
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.StoredFieldsFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.TermVectorsFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.PostingsFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.FieldInfosFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.SegmentInfoFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.LiveDocsFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.DocValuesFormat
    
    
      Lucene.Net.Codecs.Lucene46.Lucene46Codec.NormsFormat
    
    
      Lucene.Net.Codecs.Codec.SetCodecFactory(Lucene.Net.Codecs.ICodecFactory)
    
    
      Lucene.Net.Codecs.Codec.GetCodecFactory()
    
    
      Lucene.Net.Codecs.Codec.Name
    
    
      Lucene.Net.Codecs.Codec.ForName(System.String)
    
    
      Lucene.Net.Codecs.Codec.AvailableCodecs
    
    
      Lucene.Net.Codecs.Codec.Default
    
    
      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 | 
|---|---|
| Lucene.Net.Codecs.DocValuesFormat | 
Overrides
Lucene.Net.Codecs.Lucene46.Lucene46Codec.GetDocValuesFormatForField(System.String)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetPostingsFormatForField(String)
Declaration
public override PostingsFormat GetPostingsFormatForField(string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | 
Returns
| Type | Description | 
|---|---|
| Lucene.Net.Codecs.PostingsFormat | 
Overrides
Lucene.Net.Codecs.Lucene46.Lucene46Codec.GetPostingsFormatForField(System.String)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
Lucene.Net.Codecs.Codec.ToString()