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.BuilderallowMmap(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.Storagebuild()Builds aStorage.protected Storage.Builderself()Storage.Buildertype(StorageType value)Required - API name:typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:
selfin classWithJsonObjectBuilderBase<Storage.Builder>
-
build
Builds aStorage.- Specified by:
buildin interfaceObjectBuilder<Storage>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-