|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.support.master.MasterNodeOperationRequest org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequest
public class PutIndexTemplateRequest
Constructor Summary | |
---|---|
PutIndexTemplateRequest(java.lang.String name)
Constructs a new put index template request with the provided name. |
Method Summary | |
---|---|
java.lang.String |
cause()
|
PutIndexTemplateRequest |
cause(java.lang.String cause)
The cause for this index template creation. |
boolean |
create()
|
PutIndexTemplateRequest |
create(boolean create)
Set to true to force only creation, not an update of an index template. |
PutIndexTemplateRequest |
mapping(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. |
PutIndexTemplateRequest |
mapping(java.lang.String type,
java.lang.String source)
Adds mapping that will be added when the index gets created. |
PutIndexTemplateRequest |
mapping(java.lang.String type,
XContentBuilder source)
Adds mapping that will be added when the index gets created. |
java.lang.String |
name()
The name of the index template. |
PutIndexTemplateRequest |
name(java.lang.String name)
Sets the name of the index template. |
int |
order()
|
PutIndexTemplateRequest |
order(int order)
|
void |
readFrom(StreamInput in)
|
PutIndexTemplateRequest |
settings(java.util.Map<java.lang.String,java.lang.Object> source)
The settings to crete the index template with (either json/yaml/properties format) |
PutIndexTemplateRequest |
settings(Settings.Builder settings)
The settings to created the index template with. |
PutIndexTemplateRequest |
settings(Settings settings)
The settings to created the index template with. |
PutIndexTemplateRequest |
settings(java.lang.String source)
The settings to crete the index template with (either json/yaml/properties format) |
java.lang.String |
template()
|
PutIndexTemplateRequest |
template(java.lang.String template)
|
PutIndexTemplateRequest |
timeout(java.lang.String timeout)
Timeout to wait till the put mapping gets acknowledged of all current cluster nodes. |
PutIndexTemplateRequest |
timeout(TimeValue timeout)
Timeout to wait till the put mapping gets acknowledged of all current cluster nodes. |
ActionRequestValidationException |
validate()
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest |
---|
listenerThreaded, listenerThreaded, masterNodeTimeout, masterNodeTimeout, masterNodeTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PutIndexTemplateRequest(java.lang.String name)
Method Detail |
---|
public ActionRequestValidationException validate()
public PutIndexTemplateRequest name(java.lang.String name)
public java.lang.String name()
public PutIndexTemplateRequest template(java.lang.String template)
public java.lang.String template()
public PutIndexTemplateRequest order(int order)
public int order()
public PutIndexTemplateRequest create(boolean create)
IndexTemplateAlreadyExistsException
.
public boolean create()
public PutIndexTemplateRequest settings(Settings settings)
public PutIndexTemplateRequest settings(Settings.Builder settings)
public PutIndexTemplateRequest settings(java.lang.String source)
public PutIndexTemplateRequest settings(java.util.Map<java.lang.String,java.lang.Object> source)
public PutIndexTemplateRequest mapping(java.lang.String type, java.lang.String source)
type
- The mapping typesource
- The mapping sourcepublic PutIndexTemplateRequest cause(java.lang.String cause)
public java.lang.String cause()
public PutIndexTemplateRequest mapping(java.lang.String type, XContentBuilder source)
type
- The mapping typesource
- The mapping sourcepublic PutIndexTemplateRequest mapping(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> source)
type
- The mapping typesource
- The mapping sourcepublic PutIndexTemplateRequest timeout(TimeValue timeout)
public PutIndexTemplateRequest timeout(java.lang.String timeout)
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeOperationRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeOperationRequest
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |