public class GetFieldMappingsRequest extends ActionRequest implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
protected boolean |
local |
| Constructor and Description |
|---|
GetFieldMappingsRequest() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
fields() |
GetFieldMappingsRequest |
fields(java.lang.String... fields) |
boolean |
includeDefaults() |
GetFieldMappingsRequest |
includeDefaults(boolean includeDefaults)
Indicates whether default mapping settings should be returned
|
java.lang.String[] |
indices()
Returns the array of indices that the action relates to
|
GetFieldMappingsRequest |
indices(java.lang.String... indices)
Sets the indices that the action relates to.
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
GetFieldMappingsRequest |
indicesOptions(IndicesOptions indicesOptions) |
boolean |
local() |
GetFieldMappingsRequest |
local(boolean local)
Indicate whether the receiving node should operate based on local index information or forward requests,
where needed, to other nodes.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String[] |
types() |
GetFieldMappingsRequest |
types(java.lang.String... types) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskpublic GetFieldMappingsRequest local(boolean local)
public boolean local()
public GetFieldMappingsRequest indices(java.lang.String... indices)
IndicesRequest.Replaceableindices in interface IndicesRequest.Replaceablepublic GetFieldMappingsRequest types(java.lang.String... types)
public GetFieldMappingsRequest indicesOptions(IndicesOptions indicesOptions)
public java.lang.String[] indices()
IndicesRequestindices in interface IndicesRequestpublic java.lang.String[] types()
public IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic GetFieldMappingsRequest fields(java.lang.String... fields)
fields - a list of fields to retrieve the mapping forpublic java.lang.String[] fields()
public boolean includeDefaults()
public GetFieldMappingsRequest includeDefaults(boolean includeDefaults)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class ActionRequestjava.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionRequestjava.io.IOException