Enum Class StorageType

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

@JsonpDeserializable public enum StorageType extends Enum<StorageType> implements JsonEnum
See Also:
  • 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 class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StorageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • jsonValue

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

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