@Immutable public final class TypeUtils extends Object
ColumnTypes| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatter |
DATE_FORMATTER |
static DateTimeFormatter |
DATE_TIME_FORMATTER |
static List<String> |
FALSE_STRINGS |
static List<String> |
FALSE_STRINGS_FOR_DETECTION |
static com.google.common.collect.ImmutableList<String> |
MISSING_INDICATORS |
static DateTimeFormatter |
TIME_DETECTION_FORMATTER |
static DateTimeFormatter |
TIME_FORMATTER |
static List<String> |
TRUE_STRINGS |
static List<String> |
TRUE_STRINGS_FOR_DETECTION |
| Modifier and Type | Method and Description |
|---|---|
static DateTimeFormatter |
getDateFormatter(String dateValue)
Returns the first DateTimeFormatter to parse the string, which represents a DATE
|
static DateTimeFormatter |
getDateTimeFormatter(String dateTimeValue)
Returns the first DateTimeFormatter to parse the string, which represents a DATE_TIME
|
static DateTimeFormatter |
getTimeFormatter(String timeValue)
Returns the first DateTimeFormatter to parse the string, which represents a TIME
|
static Column |
newColumn(String name,
ColumnType type)
Constructs and returns a column for the given
name and type |
public static final DateTimeFormatter DATE_FORMATTER
public static final DateTimeFormatter DATE_TIME_FORMATTER
public static final DateTimeFormatter TIME_FORMATTER
public static final DateTimeFormatter TIME_DETECTION_FORMATTER
public static final com.google.common.collect.ImmutableList<String> MISSING_INDICATORS
public static Column newColumn(@NonNull String name, @NonNull ColumnType type)
name and typepublic static DateTimeFormatter getDateFormatter(String dateValue)
It's intended to be called at the start of a large formatting job so that it picks the write format and is not called again. This is an optimization, because the older version, which will try multiple formatters was too slow for large data sets.
public static DateTimeFormatter getDateTimeFormatter(String dateTimeValue)
It's intended to be called at the start of a large formatting job so that it picks the write format and is not called again. This is an optimization, because the older version, which will try multiple formatters was too slow for large data sets.
public static DateTimeFormatter getTimeFormatter(String timeValue)
It's intended to be called at the start of a large formatting job so that it picks the write format and is not called again. This is an optimization, because the older version, which will try multiple formatters was too slow for large data sets.
Copyright © 2017. All rights reserved.