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.
Inherited Members
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
AfterClass()
Tears down random defaults and cleans up temporary files.
If you override this method, be sure to callbase.AfterClass() AFTER
tearing down your test fixture.
Declaration
public override void AfterClass()
Overrides
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> |