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() |
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, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public GetFieldMappingsRequest local(boolean local)
public boolean local()
public GetFieldMappingsRequest indices(String... indices)
indices
in interface IndicesRequest.Replaceable
public GetFieldMappingsRequest types(String... types)
public GetFieldMappingsRequest indicesOptions(IndicesOptions indicesOptions)
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public String[] types()
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public 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 Streamable
writeTo
in class ActionRequest<GetFieldMappingsRequest>
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionRequest<GetFieldMappingsRequest>
IOException
Copyright © 2009–2016. All rights reserved.