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.IOException
public static Settings randomIndexSettings()
Settings
instance which include random values for
IndexMetaData.SETTING_NUMBER_OF_SHARDS
and
IndexMetaData.SETTING_NUMBER_OF_REPLICAS
public static XContentBuilder randomMapping(java.lang.String type) throws java.io.IOException
java.io.IOException
public static void randomMappingFields(XContentBuilder builder, boolean allowObjectField) throws java.io.IOException
XContentBuilder
java.io.IOException
public static void randomAliases(CreateIndexRequest request)
CreateIndexRequest