BaseTermVectorsFormatTestCase

Base class aiming at testing term vectors formats. To test a new format, all you need is to register a new Codec which uses it and extend this class and override .getCodec.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
open class RandomTokenStream(len: Int, sampleTerms: Array<String>, sampleTermBytes: Array<BytesRef>) : TokenStream

Produces a random TokenStream based off of provided terms.

Functions

Link copied to clipboard
Link copied to clipboard
open fun setUp()
Link copied to clipboard
fun tearDown()
Link copied to clipboard

This test is the best effort at verifying that checkIntegrity doesn't miss any files. It tests that the combination of opening a reader and calling checkIntegrity on it reads all bytes of all files.

Link copied to clipboard
open fun testClone(): TestResult
Link copied to clipboard
open fun testHighFreqs()
Link copied to clipboard
open fun testLotsOfFields()
Link copied to clipboard
open fun testMerge()
Link copied to clipboard

The purpose of this test is to make sure that bulk merge doesn't accumulate useless data over runs.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun testMixedOptions()
Link copied to clipboard

Calls close multiple times on closeable codec apis

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun testRandom()
Link copied to clipboard

Tests exception handling on write and openInput/createOutput

Link copied to clipboard
open fun testRareVectors()