RandomPostingsTester

Helper class extracted from BasePostingsFormatTestCase to exercise a postings format.

Constructors

Link copied to clipboard
constructor(random: Random)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class FieldAndTerm(val field: String, term: BytesRef, val ord: Long)

Holds one field, term and ord.

Link copied to clipboard

Which features to test.

Link copied to clipboard
class SeedPostings(seed: Long, minDocFreq: Int, maxDocFreq: Int, options: IndexOptions, allowPayloads: Boolean) : PostingsEnum

Given the same random seed this always enumerates the same random postings

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun buildIndex(codec: Codec, dir: Directory, maxAllowed: IndexOptions, allowPayloads: Boolean, alwaysTestMax: Boolean): FieldsProducer
Link copied to clipboard
fun testFields(fields: Fields)
Link copied to clipboard
fun testFull(codec: Codec, path: Path, options: IndexOptions, withPayloads: Boolean)

Indexes all fields/terms at the specified IndexOptions, and fully tests at that IndexOptions.

Link copied to clipboard
fun testTerms(fieldsSource: Fields, options: EnumSet<RandomPostingsTester.Option>, maxTestOptions: IndexOptions, maxIndexOptions: IndexOptions, alwaysTestMax: Boolean)