Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BaseTermVectorsFormatTestCase

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    LuceneTestCase
    BaseIndexFileFormatTestCase
    BaseTermVectorsFormatTestCase
    Inherited Members
    BaseIndexFileFormatTestCase.GetCodec()
    BaseIndexFileFormatTestCase.SetUp()
    BaseIndexFileFormatTestCase.TearDown()
    BaseIndexFileFormatTestCase.ExcludedExtensionsFromByteCounts
    BaseIndexFileFormatTestCase.TestMergeStability()
    LuceneTestCase.TEST_VERSION_CURRENT
    LuceneTestCase.Verbose
    LuceneTestCase.UseInfoStream
    LuceneTestCase.RandomMultiplier
    LuceneTestCase.DEFAULT_LINE_DOCS_FILE
    LuceneTestCase.JENKINS_LARGE_LINE_DOCS_FILE
    LuceneTestCase.TestCodec
    LuceneTestCase.TestPostingsFormat
    LuceneTestCase.TestDocValuesFormat
    LuceneTestCase.TestDirectory
    LuceneTestCase.TestLineDocsFile
    LuceneTestCase.TestNightly
    LuceneTestCase.TestWeekly
    LuceneTestCase.TestAwaitsFix
    LuceneTestCase.TestSlow
    LuceneTestCase.LeaveTemporary
    LuceneTestCase.DoesntSupportOffsets
    LuceneTestCase.OldFormatImpersonationIsActive
    LuceneTestCase.SuiteFailureMarker
    LuceneTestCase.BeforeClass()
    LuceneTestCase.Random
    LuceneTestCase.TestType
    LuceneTestCase.TestName
    LuceneTestCase.GetOnlySegmentReader(DirectoryReader)
    LuceneTestCase.AssertSaneFieldCaches(string)
    LuceneTestCase.AtLeast(Random, int)
    LuceneTestCase.AtLeast(int)
    LuceneTestCase.Rarely(Random)
    LuceneTestCase.Rarely()
    LuceneTestCase.Usually(Random)
    LuceneTestCase.Usually()
    LuceneTestCase.AssumeTrue(string, bool)
    LuceneTestCase.AssumeFalse(string, bool)
    LuceneTestCase.AssumeNoException(string, Exception)
    LuceneTestCase.AsSet(params object[])
    LuceneTestCase.DumpEnumerator(string, IEnumerator, TextWriter)
    LuceneTestCase.DumpArray(string, object[], TextWriter)
    LuceneTestCase.NewIndexWriterConfig(LuceneVersion, Analyzer)
    LuceneTestCase.NewIndexWriterConfig(Random, LuceneVersion, Analyzer)
    LuceneTestCase.NewMergePolicy(Random)
    LuceneTestCase.NewMergePolicy()
    LuceneTestCase.NewLogMergePolicy()
    LuceneTestCase.NewTieredMergePolicy()
    LuceneTestCase.NewAlcoholicMergePolicy()
    LuceneTestCase.NewAlcoholicMergePolicy(Random, TimeZoneInfo)
    LuceneTestCase.NewLogMergePolicy(Random)
    LuceneTestCase.NewTieredMergePolicy(Random)
    LuceneTestCase.NewLogMergePolicy(bool)
    LuceneTestCase.NewLogMergePolicy(bool, int)
    LuceneTestCase.NewLogMergePolicy(int)
    LuceneTestCase.NewDirectory()
    LuceneTestCase.NewDirectory(Random)
    LuceneTestCase.NewMockDirectory()
    LuceneTestCase.NewMockDirectory(Random)
    LuceneTestCase.NewMockFSDirectory(DirectoryInfo)
    LuceneTestCase.NewDirectory(Directory)
    LuceneTestCase.NewFSDirectory(DirectoryInfo)
    LuceneTestCase.NewFSDirectory(DirectoryInfo, LockFactory)
    LuceneTestCase.NewDirectory(Random, Directory)
    LuceneTestCase.NewStringField(string, string, Field.Store)
    LuceneTestCase.NewTextField(string, string, Field.Store)
    LuceneTestCase.NewStringField(Random, string, string, Field.Store)
    LuceneTestCase.NewTextField(Random, string, string, Field.Store)
    LuceneTestCase.NewField(string, string, FieldType)
    LuceneTestCase.NewField(Random, string, string, FieldType)
    LuceneTestCase.RandomCulture(Random)
    LuceneTestCase.RandomTimeZone(Random)
    LuceneTestCase.CultureForName(string)
    LuceneTestCase.DefaultCodecSupportsDocValues
    LuceneTestCase.MaybeWrapReader(IndexReader)
    LuceneTestCase.NewIOContext(Random)
    LuceneTestCase.NewIOContext(Random, IOContext)
    LuceneTestCase.NewSearcher(IndexReader)
    LuceneTestCase.NewSearcher(IndexReader, bool)
    LuceneTestCase.NewSearcher(IndexReader, bool, bool)
    LuceneTestCase.GetDataFile(string)
    LuceneTestCase.DefaultCodecSupportsMissingDocValues
    LuceneTestCase.DefaultCodecSupportsSortedSet
    LuceneTestCase.DefaultCodecSupportsDocsWithField
    LuceneTestCase.DefaultCodecSupportsFieldUpdates
    LuceneTestCase.AssertReaderEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertReaderStatisticsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertFieldsEquals(string, IndexReader, Fields, Fields, bool)
    LuceneTestCase.AssertFieldStatisticsEquals(string, Fields, Fields)
    LuceneTestCase.AssertTermsEquals(string, IndexReader, Terms, Terms, bool)
    LuceneTestCase.AssertTermsStatisticsEquals(string, Terms, Terms)
    LuceneTestCase.AssertTermsEnumEquals(string, IndexReader, TermsEnum, TermsEnum, bool)
    LuceneTestCase.AssertDocsAndPositionsEnumEquals(string, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertDocsEnumEquals(string, DocsEnum, DocsEnum, bool)
    LuceneTestCase.AssertDocsSkippingEquals(string, IndexReader, int, DocsEnum, DocsEnum, bool)
    LuceneTestCase.AssertPositionsSkippingEquals(string, IndexReader, int, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertTermStatsEquals(string, TermsEnum, TermsEnum)
    LuceneTestCase.AssertNormsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertStoredFieldsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertStoredFieldEquals(string, IIndexableField, IIndexableField)
    LuceneTestCase.AssertTermVectorsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertDocValuesEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertDocValuesEquals(string, int, NumericDocValues, NumericDocValues)
    LuceneTestCase.AssertDeletedDocsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertFieldInfosEquals(string, IndexReader, IndexReader)
    LuceneTestCase.SlowFileExists(Directory, string)
    LuceneTestCase.CreateTempDir()
    LuceneTestCase.CreateTempDir(string)
    LuceneTestCase.CreateTempFile(string, string)
    LuceneTestCase.CreateTempFile()
    LuceneTestCase.GetFullMethodName(string)
    LuceneTestCase.RandomGaussian()
    object.Equals(object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public abstract class BaseTermVectorsFormatTestCase : BaseIndexFileFormatTestCase

    Methods

    AddId(Document, string)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual Document AddId(Document doc, string id)
    Parameters
    Type Name Description
    Document doc
    string id
    Returns
    Type Description
    Document

    AddRandomFields(Document)

    Add random fields to the provided document.

    Declaration
    protected override void AddRandomFields(Document doc)
    Parameters
    Type Name Description
    Document doc
    Overrides
    BaseIndexFileFormatTestCase.AddRandomFields(Document)

    AfterClass()

    Tears down random defaults and cleans up temporary files.

    If you override this method, be sure to call base.AfterClass() AFTER tearing down your test fixture.
    Declaration
    public override void AfterClass()
    Overrides
    LuceneTestCase.AfterClass()

    AssertEquals(RandomDocument, Fields)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual void AssertEquals(BaseTermVectorsFormatTestCase.RandomDocument doc, Fields fields)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.RandomDocument doc
    Fields fields

    AssertEquals(RandomTokenStream, FieldType, Terms)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual void AssertEquals(BaseTermVectorsFormatTestCase.RandomTokenStream tk, FieldType ft, Terms terms)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.RandomTokenStream tk
    FieldType ft
    Terms terms

    DocID(IndexReader, string)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual int DocID(IndexReader reader, string id)
    Parameters
    Type Name Description
    IndexReader reader
    string id
    Returns
    Type Description
    int

    Equals(object, object)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected static bool Equals(object o1, object o2)
    Parameters
    Type Name Description
    object o1
    object o2
    Returns
    Type Description
    bool

    FieldType(Options)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual FieldType FieldType(BaseTermVectorsFormatTestCase.Options options)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.Options options
    Returns
    Type Description
    FieldType

    RandomOptions()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual BaseTermVectorsFormatTestCase.Options RandomOptions()
    Returns
    Type Description
    BaseTermVectorsFormatTestCase.Options

    RandomPayload()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual BytesRef RandomPayload()
    Returns
    Type Description
    BytesRef

    TestClone()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestClone()

    TestHighFreqs()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestHighFreqs()

    TestLotsOfFields()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestLotsOfFields()

    TestMerge()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestMerge()

    TestMixedOptions()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestMixedOptions()

    TestRandom()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestRandom()

    TestRareVectors()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    [Test]
    public virtual void TestRareVectors()

    ValidOptions()

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual IEnumerable<BaseTermVectorsFormatTestCase.Options> ValidOptions()
    Returns
    Type Description
    IEnumerable<BaseTermVectorsFormatTestCase.Options>

    ValidOptions(Options, Options)

    Base class aiming at testing Lucene.Net.Codecs.TermVectorsFormat. To test a new format, all you need is to register a new Lucene.Net.Codecs.Codec which uses it and extend this class and override GetCodec().

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected virtual IEnumerable<BaseTermVectorsFormatTestCase.Options> ValidOptions(BaseTermVectorsFormatTestCase.Options startInc, BaseTermVectorsFormatTestCase.Options endInc)
    Parameters
    Type Name Description
    BaseTermVectorsFormatTestCase.Options startInc
    BaseTermVectorsFormatTestCase.Options endInc
    Returns
    Type Description
    IEnumerable<BaseTermVectorsFormatTestCase.Options>
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.