public static enum ColumnMetadata.StructureType extends Enum<ColumnMetadata.StructureType>
Enum Constant and Description |
---|
DICT
Dict or repeated dict.
|
DYNAMIC
Unknown, specified at runtime.
|
MULTI_ARRAY
A repeated list.
|
PRIMITIVE
Primitive column (all types except List, Map and Union.)
Includes (one-dimensional) arrays of those types.
|
TUPLE
Map or repeated map.
|
VARIANT
Union or (non-repeated) list.
|
Modifier and Type | Method and Description |
---|---|
static ColumnMetadata.StructureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColumnMetadata.StructureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColumnMetadata.StructureType PRIMITIVE
public static final ColumnMetadata.StructureType TUPLE
public static final ColumnMetadata.StructureType VARIANT
public static final ColumnMetadata.StructureType MULTI_ARRAY
In theory, a 2D list of, say, INT would be an INT column, but repeated in to dimensions. Alas, that is not how it is. Also, if we have a separate category for 2D lists, we should have a separate category for 1D lists. But, again, that is not how the code has evolved.
public static final ColumnMetadata.StructureType DICT
public static final ColumnMetadata.StructureType DYNAMIC
public static ColumnMetadata.StructureType[] values()
for (ColumnMetadata.StructureType c : ColumnMetadata.StructureType.values()) System.out.println(c);
public static ColumnMetadata.StructureType 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 nullCopyright © 1970 The Apache Software Foundation. All rights reserved.