Class Storage.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Storage.Builder>
co.elastic.clients.elasticsearch.indices.Storage.Builder
- All Implemented Interfaces:
WithJson<Storage.Builder>
,ObjectBuilder<Storage>
- Enclosing class:
- Storage
public static class Storage.Builder extends WithJsonObjectBuilderBase<Storage.Builder> implements ObjectBuilder<Storage>
Builder for
Storage
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Storage.Builder
allowMmap(java.lang.Boolean value)
You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap.Storage
build()
Builds aStorage
.protected Storage.Builder
self()
Storage.Builder
type(StorageType value)
Required - API name:type
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Required - API name:type
-
allowMmap
You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This setting is useful, for example, if you are in an environment where you can not control the ability to create a lot of memory maps so you need disable the ability to use memory-mapping.API name:
allow_mmap
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Storage.Builder>
-
build
Builds aStorage
.- Specified by:
build
in interfaceObjectBuilder<Storage>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-