public final class RandomCreateIndexGenerator
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
randomAliases(CreateIndexRequest request) |
Sets random aliases to the provided
CreateIndexRequest |
static CreateIndexRequest |
randomCreateIndexRequest() |
Returns a random
CreateIndexRequest. |
static Settings |
randomIndexSettings() |
Returns a
Settings instance which include random values for
IndexMetaData.SETTING_NUMBER_OF_SHARDS and
IndexMetaData.SETTING_NUMBER_OF_REPLICAS |
static XContentBuilder |
randomMapping(java.lang.String type) |
|
static void |
randomMappingFields(XContentBuilder builder,
boolean allowObjectField) |
Adds random mapping fields to the provided
XContentBuilder |
public static CreateIndexRequest randomCreateIndexRequest() throws java.io.IOException
CreateIndexRequest. Randomizes the index name, the aliases,
mappings and settings associated with the index.java.io.IOExceptionpublic static Settings randomIndexSettings()
Settings instance which include random values for
IndexMetaData.SETTING_NUMBER_OF_SHARDS and
IndexMetaData.SETTING_NUMBER_OF_REPLICASpublic static XContentBuilder randomMapping(java.lang.String type) throws java.io.IOException
java.io.IOExceptionpublic static void randomMappingFields(XContentBuilder builder, boolean allowObjectField) throws java.io.IOException
XContentBuilderjava.io.IOExceptionpublic static void randomAliases(CreateIndexRequest request)
CreateIndexRequest