Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Codec
    Lucene46Codec
    RandomCodec
    Inherited Members
    Lucene46Codec.StoredFieldsFormat
    Lucene46Codec.TermVectorsFormat
    Lucene46Codec.PostingsFormat
    Lucene46Codec.FieldInfosFormat
    Lucene46Codec.SegmentInfoFormat
    Lucene46Codec.LiveDocsFormat
    Lucene46Codec.DocValuesFormat
    Lucene46Codec.NormsFormat
    Codec.SetCodecFactory(ICodecFactory)
    Codec.GetCodecFactory()
    Codec.Name
    Codec.ForName(String)
    Codec.AvailableCodecs
    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 Source

    RandomCodec(Random)

    Declaration
    public RandomCodec(Random random)
    Parameters
    Type Name Description
    System.Random random
    | Improve this Doc View Source

    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 Source

    DvFormatNames

    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>
    | Improve this Doc View Source

    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 Source

    GetDocValuesFormatForField(String)

    Declaration
    public override DocValuesFormat GetDocValuesFormatForField(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    DocValuesFormat
    Overrides
    Lucene46Codec.GetDocValuesFormatForField(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
    PostingsFormat
    Overrides
    Lucene46Codec.GetPostingsFormatForField(String)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    Codec.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)