public class GetFieldMappingsRequest extends ActionRequest<GetFieldMappingsRequest > implements IndicesRequest .Replaceable
TransportRequest.Empty IndicesRequest.Replaceable | Modifier and Type | Field and Description |
|---|---|
protected boolean |
local
|
headers| Constructor and Description |
|---|
GetFieldMappingsRequest()
|
GetFieldMappingsRequest(GetFieldMappingsRequest
|
| Modifier and Type | Method and Description |
|---|---|
String |
fields()
|
GetFieldMappingsRequest |
fields(String
|
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
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
GetFieldMappingsRequest |
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
|
String |
types()
|
GetFieldMappingsRequest |
types(String
|
ActionRequestValidationException |
validate()
|
void |
writeTo(StreamOutput
|
listenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic GetFieldMappingsRequest()
public GetFieldMappingsRequest(GetFieldMappingsRequestother)
public GetFieldMappingsRequestlocal(boolean local)
public boolean local()
public GetFieldMappingsRequestindices(String ... indices)
public GetFieldMappingsRequesttypes(String ... types)
public GetFieldMappingsRequestindicesOptions(IndicesOptions indicesOptions)
public String[] indices()
IndicesRequest
public String[] types()
public IndicesOptionsindicesOptions()
IndicesRequest
public GetFieldMappingsRequestfields(String ... fields)
fields - a list of fields to retrieve the mapping for
public String[] fields()
public boolean includeDefaults()
public GetFieldMappingsRequestincludeDefaults(boolean includeDefaults)
public ActionRequestValidationExceptionvalidate()
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
writeTo in class
ActionRequest<GetFieldMappingsRequest>
IOException
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
readFrom in class
ActionRequest<GetFieldMappingsRequest>
IOException