|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder<CreateIndexRequest,CreateIndexResponse> org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder
public class CreateIndexRequestBuilder
Field Summary |
---|
Fields inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder |
---|
client, request |
Constructor Summary | |
---|---|
CreateIndexRequestBuilder(IndicesAdminClient indicesClient,
java.lang.String index)
|
Method Summary | |
---|---|
CreateIndexRequestBuilder |
addMapping(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> source)
Adds mapping that will be added when the index gets created. |
CreateIndexRequestBuilder |
addMapping(java.lang.String type,
java.lang.String source)
Adds mapping that will be added when the index gets created. |
CreateIndexRequestBuilder |
addMapping(java.lang.String type,
XContentBuilder source)
Adds mapping that will be added when the index gets created. |
CreateIndexRequestBuilder |
cause(java.lang.String cause)
The cause for this index creation. |
protected void |
doExecute(ActionListener<CreateIndexResponse> listener)
|
CreateIndexRequestBuilder |
setMasterNodeTimeout(java.lang.String timeout)
Sets the master node timeout in case the master has not yet been discovered. |
CreateIndexRequestBuilder |
setMasterNodeTimeout(TimeValue timeout)
Sets the master node timeout in case the master has not yet been discovered. |
CreateIndexRequestBuilder |
setSettings(java.util.Map<java.lang.String,java.lang.Object> source)
The settings to crete the index with (either json/yaml/properties format) |
CreateIndexRequestBuilder |
setSettings(Settings.Builder settings)
The settings to created the index with. |
CreateIndexRequestBuilder |
setSettings(Settings settings)
The settings to created the index with. |
CreateIndexRequestBuilder |
setSettings(java.lang.String source)
The settings to crete the index with (either json/yaml/properties format) |
CreateIndexRequestBuilder |
setTimeout(java.lang.String timeout)
Timeout to wait for the index creation to be acknowledged by current cluster nodes. |
CreateIndexRequestBuilder |
setTimeout(TimeValue timeout)
Timeout to wait for the index creation to be acknowledged by current cluster nodes. |
Methods inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder |
---|
execute, execute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateIndexRequestBuilder(IndicesAdminClient indicesClient, java.lang.String index)
Method Detail |
---|
public CreateIndexRequestBuilder setSettings(Settings settings)
public CreateIndexRequestBuilder setSettings(Settings.Builder settings)
public CreateIndexRequestBuilder setSettings(java.lang.String source)
public CreateIndexRequestBuilder setSettings(java.util.Map<java.lang.String,java.lang.Object> source)
public CreateIndexRequestBuilder addMapping(java.lang.String type, java.lang.String source)
type
- The mapping typesource
- The mapping sourcepublic CreateIndexRequestBuilder cause(java.lang.String cause)
public CreateIndexRequestBuilder addMapping(java.lang.String type, XContentBuilder source)
type
- The mapping typesource
- The mapping sourcepublic CreateIndexRequestBuilder addMapping(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> source)
type
- The mapping typesource
- The mapping sourcepublic CreateIndexRequestBuilder setTimeout(TimeValue timeout)
public CreateIndexRequestBuilder setTimeout(java.lang.String timeout)
public CreateIndexRequestBuilder setMasterNodeTimeout(TimeValue timeout)
public CreateIndexRequestBuilder setMasterNodeTimeout(java.lang.String timeout)
protected void doExecute(ActionListener<CreateIndexResponse> listener)
doExecute
in class BaseIndicesRequestBuilder<CreateIndexRequest,CreateIndexResponse>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |