Class RandomCodec
Codec that assigns per-field random Postings
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.
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 |
RandomCodec(Random, ISet<String>)
Declaration
public RandomCodec(Random random, ISet<string> avoidCodecs)
Parameters
Type | Name | Description |
---|---|---|
System. |
random | |
System. |
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. |
FormatNames
unique set of format names this codec knows about
Declaration
public ISet<string> FormatNames { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceGetDocValuesFormatForField(String)
Declaration
public override DocValuesFormat GetDocValuesFormatForField(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name |
Returns
Type | Description |
---|---|
Doc |
Overrides
| Improve this Doc View SourceGetPostingsFormatForField(String)
Declaration
public override PostingsFormat GetPostingsFormatForField(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name |
Returns
Type | Description |
---|---|
Postings |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |