Package com.hazelcast.config
Enum Class MetadataPolicy
- All Implemented Interfaces:
Serializable
,Comparable<MetadataPolicy>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHazelcast processes supported objects at the time of creation and updates.Turns off metadata creation. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataPolicy
getById
(int id) Returns the MetadataPolicy for the given ID.int
getId()
Returns enumeration id of this policy.static MetadataPolicy
Returns the enum constant of this class with the specified name.static MetadataPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Turns off metadata creation.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getId
public int getId()Returns enumeration id of this policy. We use id field instead ofEnum.ordinal()
because this value is used in client protocol. The ids for the known policies must not be changed.- Returns:
- id
-
getById
Returns the MetadataPolicy for the given ID.- Returns:
- the MetadataPolicy found or null if not found
-