public class RandomPostingsTester extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RandomPostingsTester.FieldAndTerm
Holds one field, term and ord.
|
static class |
RandomPostingsTester.Option
Which features to test.
|
static class |
RandomPostingsTester.SeedPostings
Given the same random seed this always enumerates the
same random postings
|
Constructor and Description |
---|
RandomPostingsTester(Random random) |
Modifier and Type | Method and Description |
---|---|
FieldsProducer |
buildIndex(Codec codec,
Directory dir,
IndexOptions maxAllowed,
boolean allowPayloads,
boolean alwaysTestMax) |
static RandomPostingsTester.SeedPostings |
getSeedPostings(String term,
long seed,
IndexOptions options,
boolean allowPayloads) |
void |
testFields(Fields fields) |
void |
testFull(Codec codec,
Path path,
IndexOptions options,
boolean withPayloads)
Indexes all fields/terms at the specified
IndexOptions, and fully tests at that IndexOptions.
|
void |
testTerms(Fields fieldsSource,
EnumSet<RandomPostingsTester.Option> options,
IndexOptions maxTestOptions,
IndexOptions maxIndexOptions,
boolean alwaysTestMax) |
public RandomPostingsTester(Random random) throws IOException
IOException
public static RandomPostingsTester.SeedPostings getSeedPostings(String term, long seed, IndexOptions options, boolean allowPayloads)
public FieldsProducer buildIndex(Codec codec, Directory dir, IndexOptions maxAllowed, boolean allowPayloads, boolean alwaysTestMax) throws IOException
IOException
public void testTerms(Fields fieldsSource, EnumSet<RandomPostingsTester.Option> options, IndexOptions maxTestOptions, IndexOptions maxIndexOptions, boolean alwaysTestMax) throws Exception
Exception
public void testFull(Codec codec, Path path, IndexOptions options, boolean withPayloads) throws Exception
Exception
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.