public class RandomPostingsTester
extends java.lang.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(java.util.Random random) |
Modifier and Type | Method and Description |
---|---|
FieldsProducer |
buildIndex(Codec codec,
Directory dir,
IndexOptions maxAllowed,
boolean allowPayloads,
boolean alwaysTestMax) |
static RandomPostingsTester.SeedPostings |
getSeedPostings(java.lang.String term,
long seed,
IndexOptions options,
boolean allowPayloads) |
void |
testFields(Fields fields) |
void |
testFull(Codec codec,
java.nio.file.Path path,
IndexOptions options,
boolean withPayloads)
Indexes all fields/terms at the specified
IndexOptions, and fully tests at that IndexOptions.
|
void |
testTerms(Fields fieldsSource,
java.util.EnumSet<RandomPostingsTester.Option> options,
IndexOptions maxTestOptions,
IndexOptions maxIndexOptions,
boolean alwaysTestMax) |
public RandomPostingsTester(java.util.Random random) throws java.io.IOException
java.io.IOException
public static RandomPostingsTester.SeedPostings getSeedPostings(java.lang.String term, long seed, IndexOptions options, boolean allowPayloads)
public FieldsProducer buildIndex(Codec codec, Directory dir, IndexOptions maxAllowed, boolean allowPayloads, boolean alwaysTestMax) throws java.io.IOException
java.io.IOException
public void testTerms(Fields fieldsSource, java.util.EnumSet<RandomPostingsTester.Option> options, IndexOptions maxTestOptions, IndexOptions maxIndexOptions, boolean alwaysTestMax) throws java.lang.Exception
java.lang.Exception
public void testFields(Fields fields) throws java.lang.Exception
java.lang.Exception
public void testFull(Codec codec, java.nio.file.Path path, IndexOptions options, boolean withPayloads) throws java.lang.Exception
java.lang.Exception
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.