Enum Class FieldKind

java.lang.Object
java.lang.Enum<FieldKind>
com.hazelcast.nio.serialization.FieldKind
All Implemented Interfaces:
Serializable, Comparable<FieldKind>, Constable

public enum FieldKind extends Enum<FieldKind>
FieldKind for Compact and Portable formats. It is designed to be used with GenericRecord.getFieldKind(String) API.

Note that actual id's in FieldType and FieldKind are not matching. FieldType is the old API for Portable only and only meant to be used with ClassDefinition.getFieldType(String) API.

Since:
Hazelcast 5.2
  • Enum Constant Details

    • NOT_AVAILABLE

      public static final FieldKind NOT_AVAILABLE
      Represents fields that do not exist.
    • BOOLEAN

      public static final FieldKind BOOLEAN
    • ARRAY_OF_BOOLEAN

      public static final FieldKind ARRAY_OF_BOOLEAN
    • INT8

      public static final FieldKind INT8
    • ARRAY_OF_INT8

      public static final FieldKind ARRAY_OF_INT8
    • CHAR

      @Deprecated(since="5.4", forRemoval=false) public static final FieldKind CHAR
      Deprecated.
      Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0.
      Supported only for Portable. Not applicable to Compact
    • ARRAY_OF_CHAR

      @Deprecated(since="5.4", forRemoval=false) public static final FieldKind ARRAY_OF_CHAR
      Deprecated.
      Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0.
      Supported only for Portable. Not applicable to Compact
    • INT16

      public static final FieldKind INT16
    • ARRAY_OF_INT16

      public static final FieldKind ARRAY_OF_INT16
    • INT32

      public static final FieldKind INT32
    • ARRAY_OF_INT32

      public static final FieldKind ARRAY_OF_INT32
    • INT64

      public static final FieldKind INT64
    • ARRAY_OF_INT64

      public static final FieldKind ARRAY_OF_INT64
    • FLOAT32

      public static final FieldKind FLOAT32
    • ARRAY_OF_FLOAT32

      public static final FieldKind ARRAY_OF_FLOAT32
    • FLOAT64

      public static final FieldKind FLOAT64
    • ARRAY_OF_FLOAT64

      public static final FieldKind ARRAY_OF_FLOAT64
    • STRING

      public static final FieldKind STRING
    • ARRAY_OF_STRING

      public static final FieldKind ARRAY_OF_STRING
    • DECIMAL

      public static final FieldKind DECIMAL
    • ARRAY_OF_DECIMAL

      public static final FieldKind ARRAY_OF_DECIMAL
    • TIME

      public static final FieldKind TIME
    • ARRAY_OF_TIME

      public static final FieldKind ARRAY_OF_TIME
    • DATE

      public static final FieldKind DATE
    • ARRAY_OF_DATE

      public static final FieldKind ARRAY_OF_DATE
    • TIMESTAMP

      public static final FieldKind TIMESTAMP
    • ARRAY_OF_TIMESTAMP

      public static final FieldKind ARRAY_OF_TIMESTAMP
    • TIMESTAMP_WITH_TIMEZONE

      public static final FieldKind TIMESTAMP_WITH_TIMEZONE
    • ARRAY_OF_TIMESTAMP_WITH_TIMEZONE

      public static final FieldKind ARRAY_OF_TIMESTAMP_WITH_TIMEZONE
    • COMPACT

      public static final FieldKind COMPACT
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_COMPACT

      public static final FieldKind ARRAY_OF_COMPACT
      Supported only for Compact. Not applicable to Portable.
    • PORTABLE

      @Deprecated(since="5.4", forRemoval=true) public static final FieldKind PORTABLE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0.
      Supported only for Portable. Not applicable to Compact
    • ARRAY_OF_PORTABLE

      @Deprecated(since="5.4", forRemoval=true) public static final FieldKind ARRAY_OF_PORTABLE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0.
      Supported only for Portable. Not applicable to CompactCompactSerializationConfig
    • NULLABLE_BOOLEAN

      public static final FieldKind NULLABLE_BOOLEAN
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_BOOLEAN

      public static final FieldKind ARRAY_OF_NULLABLE_BOOLEAN
      Supported only for Compact. Not applicable to Portable.
    • NULLABLE_INT8

      public static final FieldKind NULLABLE_INT8
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_INT8

      public static final FieldKind ARRAY_OF_NULLABLE_INT8
      Supported only for Compact. Not applicable to Portable.
    • NULLABLE_INT16

      public static final FieldKind NULLABLE_INT16
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_INT16

      public static final FieldKind ARRAY_OF_NULLABLE_INT16
      Supported only for Compact. Not applicable to Portable.
    • NULLABLE_INT32

      public static final FieldKind NULLABLE_INT32
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_INT32

      public static final FieldKind ARRAY_OF_NULLABLE_INT32
      Supported only for Compact. Not applicable to Portable.
    • NULLABLE_INT64

      public static final FieldKind NULLABLE_INT64
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_INT64

      public static final FieldKind ARRAY_OF_NULLABLE_INT64
      Supported only for Compact. Not applicable to Portable.
    • NULLABLE_FLOAT32

      public static final FieldKind NULLABLE_FLOAT32
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_FLOAT32

      public static final FieldKind ARRAY_OF_NULLABLE_FLOAT32
      Supported only for Compact. Not applicable to Portable.
    • NULLABLE_FLOAT64

      public static final FieldKind NULLABLE_FLOAT64
      Supported only for Compact. Not applicable to Portable.
    • ARRAY_OF_NULLABLE_FLOAT64

      public static final FieldKind ARRAY_OF_NULLABLE_FLOAT64
      Supported only for Compact. Not applicable to Portable.
  • Method Details

    • values

      public static FieldKind[] 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 FieldKind 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
    • get

      public static FieldKind get(int type)
    • getId

      public int getId()