public class SpecialFields extends Object
RowType
with specific field ids.
System fields:
_KEY_<key-field>
: Keys of a key-value. ID = 1073741823 +
(field-id)
.
_SEQUENCE_NUMBER
: Sequence number of a key-value. ID = 2147483646.
_VALUE_KIND
: Type of a key-value. See RowKind
.
ID = 2147483645.
_LEVEL
: Which LSM tree level does this key-value stay in. ID = 2147483644.
rowkind
: THw rowkind field in audit-log system tables. ID = 2147483643.
Structured type fields:
These ids are mainly used as field ids in parquet files, so compute engines can read a field
directly by id. These ids are not stored in DataField
.
(array-field-id)
.
(array-field-id)
.
(array-field-id)
.
Modifier and Type | Field and Description |
---|---|
static int |
KEY_FIELD_ID_START |
static String |
KEY_FIELD_PREFIX |
static DataField |
LEVEL |
static DataField |
ROW_KIND |
static DataField |
SEQUENCE_NUMBER |
static int |
STRUCTURED_TYPE_FIELD_ID_BASE |
static int |
SYSTEM_FIELD_ID_START |
static Set<String> |
SYSTEM_FIELD_NAMES |
static DataField |
VALUE_KIND |
Constructor and Description |
---|
SpecialFields() |
Modifier and Type | Method and Description |
---|---|
static int |
getArrayElementFieldId(int arrayFieldId) |
static int |
getMapKeyFieldId(int mapFieldId) |
static int |
getMapValueFieldId(int mapFieldId) |
static boolean |
isSystemField(int fieldId) |
static boolean |
isSystemField(String field) |
public static final int SYSTEM_FIELD_ID_START
public static final String KEY_FIELD_PREFIX
public static final int KEY_FIELD_ID_START
public static final DataField SEQUENCE_NUMBER
public static final DataField VALUE_KIND
public static final DataField LEVEL
public static final DataField ROW_KIND
public static final int STRUCTURED_TYPE_FIELD_ID_BASE
public static boolean isSystemField(int fieldId)
public static boolean isSystemField(String field)
public static int getArrayElementFieldId(int arrayFieldId)
public static int getMapKeyFieldId(int mapFieldId)
public static int getMapValueFieldId(int mapFieldId)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.