Enum StorageType

java.lang.Object
java.lang.Enum<StorageType>
co.elastic.clients.elasticsearch.indices.StorageType
All Implemented Interfaces:
JsonEnum, JsonpSerializable, java.io.Serializable, java.lang.Comparable<StorageType>, java.lang.constant.Constable

@JsonpDeserializable
public enum StorageType
extends java.lang.Enum<StorageType>
implements JsonEnum
See Also:
API specification
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>

    Nested classes/interfaces inherited from interface co.elastic.clients.json.JsonEnum

    JsonEnum.Deserializer<T extends JsonEnum>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    Fs
    Default file system implementation.
    Hybridfs
    The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file based on the read access pattern.
    Mmapfs
    The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into memory (mmap).
    Niofs
    The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static JsonEnum.Deserializer<StorageType> _DESERIALIZER  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String[] aliases()  
    java.lang.String jsonValue()  
    static StorageType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static StorageType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface co.elastic.clients.json.JsonEnum

    serialize
  • Enum Constant Details

    • Fs

      public static final StorageType Fs
      Default file system implementation. This will pick the best implementation depending on the operating environment, which is currently hybridfs on all supported systems but is subject to change.
    • Niofs

      public static final StorageType Niofs
      The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO. It allows multiple threads to read from the same file concurrently. It is not recommended on Windows because of a bug in the SUN Java implementation and disables some optimizations for heap memory usage.
    • Mmapfs

      public static final StorageType Mmapfs
      The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into memory (mmap). Memory mapping uses up a portion of the virtual memory address space in your process equal to the size of the file being mapped. Before using this class, be sure you have allowed plenty of virtual address space.
    • Hybridfs

      public static final StorageType Hybridfs
      The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file based on the read access pattern. Currently only the Lucene term dictionary, norms and doc values files are memory mapped. All other files are opened using Lucene NIOFSDirectory. Similarly to mmapfs be sure you have allowed plenty of virtual address space.
  • Field Details

  • Method Details

    • values

      public static StorageType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StorageType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • jsonValue

      public java.lang.String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum
    • aliases

      public java.lang.String[] aliases()
      Specified by:
      aliases in interface JsonEnum