Show / Hide Table of Contents

    Class RandomCodec

    that assigns per-field random s.

    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 s and added to documents in different orders and the test will still be deterministic and reproducable.

    Inheritance
    System.Object
    RandomCodec
    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
    Random random
    | Improve this Doc View Source

    RandomCodec(Random, ISet<String>)

    Declaration
    public RandomCodec(Random random, ISet<string> avoidCodecs)
    Parameters
    Type Name Description
    Random random
    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
    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
    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
    | 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
    | Improve this Doc View Source

    ToString()

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