public class GetFieldMappingsRequest extends ActionRequest<GetFieldMappingsRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
protected boolean |
local |
headers| Constructor and Description |
|---|
GetFieldMappingsRequest() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
fields() |
GetFieldMappingsRequest |
fields(String... fields) |
boolean |
includeDefaults() |
GetFieldMappingsRequest |
includeDefaults(boolean includeDefaults)
Indicates whether default mapping settings should be returned
|
String[] |
indices()
Returns the array of indices that the action relates to
|
GetFieldMappingsRequest |
indices(String... indices) |
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) |
String[] |
types() |
GetFieldMappingsRequest |
types(String... types) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
createTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic GetFieldMappingsRequest local(boolean local)
public boolean local()
public GetFieldMappingsRequest indices(String... indices)
indices in interface IndicesRequest.Replaceablepublic GetFieldMappingsRequest types(String... types)
public GetFieldMappingsRequest indicesOptions(IndicesOptions indicesOptions)
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic String[] types()
public IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic GetFieldMappingsRequest fields(String... fields)
fields - a list of fields to retrieve the mapping forpublic String[] fields()
public boolean includeDefaults()
public GetFieldMappingsRequest includeDefaults(boolean includeDefaults)
public ActionRequestValidationException validate()
validate in class ActionRequest<GetFieldMappingsRequest>public void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<GetFieldMappingsRequest>IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<GetFieldMappingsRequest>IOExceptionCopyright © 2009–2017. All rights reserved.