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
IOExceptionpublic 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
IOExceptionpublic void testTerms(Fields fieldsSource, EnumSet<RandomPostingsTester.Option> options, IndexOptions maxTestOptions, IndexOptions maxIndexOptions, boolean alwaysTestMax) throws Exception
Exceptionpublic void testFull(Codec codec, Path path, IndexOptions options, boolean withPayloads) throws Exception
ExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.