public enum FieldKind extends Enum<FieldKind>
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.
Modifier and Type | Method and Description |
---|---|
static FieldKind |
get(int type) |
int |
getId() |
static FieldKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldKind NOT_AVAILABLE
public static final FieldKind BOOLEAN
public static final FieldKind ARRAY_OF_BOOLEAN
public static final FieldKind INT8
public static final FieldKind ARRAY_OF_INT8
public static final FieldKind CHAR
public static final FieldKind ARRAY_OF_CHAR
public static final FieldKind INT16
public static final FieldKind ARRAY_OF_INT16
public static final FieldKind INT32
public static final FieldKind ARRAY_OF_INT32
public static final FieldKind INT64
public static final FieldKind ARRAY_OF_INT64
public static final FieldKind FLOAT32
public static final FieldKind ARRAY_OF_FLOAT32
public static final FieldKind FLOAT64
public static final FieldKind ARRAY_OF_FLOAT64
public static final FieldKind STRING
public static final FieldKind ARRAY_OF_STRING
public static final FieldKind DECIMAL
public static final FieldKind ARRAY_OF_DECIMAL
public static final FieldKind TIME
public static final FieldKind ARRAY_OF_TIME
public static final FieldKind DATE
public static final FieldKind ARRAY_OF_DATE
public static final FieldKind TIMESTAMP
public static final FieldKind ARRAY_OF_TIMESTAMP
public static final FieldKind TIMESTAMP_WITH_TIMEZONE
public static final FieldKind ARRAY_OF_TIMESTAMP_WITH_TIMEZONE
public static final FieldKind COMPACT
public static final FieldKind ARRAY_OF_COMPACT
public static final FieldKind PORTABLE
public static final FieldKind ARRAY_OF_PORTABLE
Portable
. Not applicable to CompactCompactSerializationConfig
public static final FieldKind NULLABLE_BOOLEAN
public static final FieldKind ARRAY_OF_NULLABLE_BOOLEAN
public static final FieldKind NULLABLE_INT8
public static final FieldKind ARRAY_OF_NULLABLE_INT8
public static final FieldKind NULLABLE_INT16
public static final FieldKind ARRAY_OF_NULLABLE_INT16
public static final FieldKind NULLABLE_INT32
public static final FieldKind ARRAY_OF_NULLABLE_INT32
public static final FieldKind NULLABLE_INT64
public static final FieldKind ARRAY_OF_NULLABLE_INT64
public static final FieldKind NULLABLE_FLOAT32
public static final FieldKind ARRAY_OF_NULLABLE_FLOAT32
public static final FieldKind NULLABLE_FLOAT64
public static final FieldKind ARRAY_OF_NULLABLE_FLOAT64
public static FieldKind[] values()
for (FieldKind c : FieldKind.values()) System.out.println(c);
public static FieldKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static FieldKind get(int type)
public int getId()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.