Class MappingLimitSettingsFieldNameLength.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MappingLimitSettingsFieldNameLength.Builder>
co.elastic.clients.elasticsearch.indices.MappingLimitSettingsFieldNameLength.Builder
- All Implemented Interfaces:
WithJson<MappingLimitSettingsFieldNameLength.Builder>
,ObjectBuilder<MappingLimitSettingsFieldNameLength>
- Enclosing class:
- MappingLimitSettingsFieldNameLength
public static class MappingLimitSettingsFieldNameLength.Builder
extends WithJsonObjectBuilderBase<MappingLimitSettingsFieldNameLength.Builder>
implements ObjectBuilder<MappingLimitSettingsFieldNameLength>
Builder for
MappingLimitSettingsFieldNameLength
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aMappingLimitSettingsFieldNameLength
.Setting for the maximum length of a field name.self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limit
Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but might still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The default is okay unless a user starts to add a huge number of fields with really long names. Default isLong.MAX_VALUE
(no limit).API name:
limit
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MappingLimitSettingsFieldNameLength.Builder>
-
build
Builds aMappingLimitSettingsFieldNameLength
.- Specified by:
build
in interfaceObjectBuilder<MappingLimitSettingsFieldNameLength>
- Throws:
NullPointerException
- if some of the required fields are null.
-