java.lang.Object
co.elastic.clients.elasticsearch.indices.Storage
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class Storage
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static Storage of​(java.util.function.Function<Storage.Builder,​ObjectBuilder<Storage>> fn)
    • type

      public final StorageType type()
      Required - API name: type
    • allowMmap

      @Nullable public final java.lang.Boolean 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

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupStorageDeserializer

      protected static void setupStorageDeserializer​(ObjectDeserializer<Storage.Builder> op)