Class GetFieldMappingsRequestBuilder
- java.lang.Object
-
- org.elasticsearch.action.ActionRequestBuilder<GetFieldMappingsRequest,GetFieldMappingsResponse,GetFieldMappingsRequestBuilder>
-
- org.elasticsearch.action.admin.indices.mapping.get.GetFieldMappingsRequestBuilder
-
public class GetFieldMappingsRequestBuilder extends ActionRequestBuilder<GetFieldMappingsRequest,GetFieldMappingsResponse,GetFieldMappingsRequestBuilder>
A helper class to buildGetFieldMappingsRequest
objects
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
-
Constructor Summary
Constructors Constructor Description GetFieldMappingsRequestBuilder(ElasticsearchClient client, GetFieldMappingsAction action, java.lang.String... indices)
-
Method Summary
Modifier and Type Method Description GetFieldMappingsRequestBuilder
addIndices(java.lang.String... indices)
GetFieldMappingsRequestBuilder
addTypes(java.lang.String... types)
GetFieldMappingsRequestBuilder
includeDefaults(boolean includeDefaults)
Indicates whether default mapping settings should be returnedGetFieldMappingsRequestBuilder
setFields(java.lang.String... fields)
Sets the fields to retrieve.GetFieldMappingsRequestBuilder
setIndices(java.lang.String... indices)
GetFieldMappingsRequestBuilder
setIndicesOptions(IndicesOptions indicesOptions)
GetFieldMappingsRequestBuilder
setTypes(java.lang.String... types)
-
-
-
Constructor Detail
-
GetFieldMappingsRequestBuilder
public GetFieldMappingsRequestBuilder(ElasticsearchClient client, GetFieldMappingsAction action, java.lang.String... indices)
-
-
Method Detail
-
setIndices
public GetFieldMappingsRequestBuilder setIndices(java.lang.String... indices)
-
addIndices
public GetFieldMappingsRequestBuilder addIndices(java.lang.String... indices)
-
setTypes
public GetFieldMappingsRequestBuilder setTypes(java.lang.String... types)
-
addTypes
public GetFieldMappingsRequestBuilder addTypes(java.lang.String... types)
-
setIndicesOptions
public GetFieldMappingsRequestBuilder setIndicesOptions(IndicesOptions indicesOptions)
-
setFields
public GetFieldMappingsRequestBuilder setFields(java.lang.String... fields)
Sets the fields to retrieve.
-
includeDefaults
public GetFieldMappingsRequestBuilder includeDefaults(boolean includeDefaults)
Indicates whether default mapping settings should be returned
-
-