Enum MetadataPolicy

java.lang.Object
java.lang.Enum<MetadataPolicy>
com.hazelcast.config.MetadataPolicy
All Implemented Interfaces:
Serializable, Comparable<MetadataPolicy>, java.lang.constant.Constable

public enum MetadataPolicy
extends Enum<MetadataPolicy>
Hazelcast may process objects of supported types ahead of time to create additional metadata about them. This metadata then is used to make querying and indexing faster.
  • Enum Constant Details

    • CREATE_ON_UPDATE

      public static final MetadataPolicy CREATE_ON_UPDATE
      Hazelcast processes supported objects at the time of creation and updates. This may increase put latency for the specific data structure that this option is configured with.
    • OFF

      public static final MetadataPolicy OFF
      Turns off metadata creation.
  • Method Details

    • values

      public static MetadataPolicy[] 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 MetadataPolicy valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Returns enumeration id of this policy. We use id field instead of Enum.ordinal() because this value is used in client protocol. The ids for the known policies must not be changed.
      Returns:
      id
    • getById

      public static MetadataPolicy getById​(int id)
      Returns the MetadataPolicy for the given ID.
      Returns:
      the MetadataPolicy found or null if not found