enum FileFieldType extends Enum<FileFieldType>
Usually, and unless specified explicitly in the header row, a field is
of type STRING. But specifying the field type in the fields
makes it easier to write SQL.
Trivially modified from CsvFieldType.
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
CHAR |
DATE |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
STRING |
TIME |
TIMESTAMP |
| Modifier and Type | Field and Description |
|---|---|
private Class |
clazz |
private static Map<String,FileFieldType> |
MAP |
private Primitive |
primitive |
| Modifier and Type | Method and Description |
|---|---|
static FileFieldType |
of(String typeString) |
RelDataType |
toType(JavaTypeFactory typeFactory) |
static FileFieldType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileFieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFieldType STRING
public static final FileFieldType BOOLEAN
public static final FileFieldType BYTE
public static final FileFieldType CHAR
public static final FileFieldType SHORT
public static final FileFieldType INT
public static final FileFieldType LONG
public static final FileFieldType FLOAT
public static final FileFieldType DOUBLE
public static final FileFieldType DATE
public static final FileFieldType TIME
public static final FileFieldType TIMESTAMP
private final Primitive primitive
private final Class clazz
private static final Map<String,FileFieldType> MAP
public static FileFieldType[] values()
for (FileFieldType c : FileFieldType.values()) System.out.println(c);
public static FileFieldType 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 RelDataType toType(JavaTypeFactory typeFactory)
public static FileFieldType of(String typeString)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.