@Immutable
public final class TypeUtils
extends java.lang.Object
ColumnType
sModifier and Type | Field and Description |
---|---|
static java.time.format.DateTimeFormatter |
DATE_FORMATTER |
static java.time.format.DateTimeFormatter |
DATE_TIME_FORMATTER |
static java.util.List<java.lang.String> |
FALSE_STRINGS |
static java.util.List<java.lang.String> |
FALSE_STRINGS_FOR_DETECTION |
static com.google.common.collect.ImmutableList<java.lang.String> |
MISSING_INDICATORS |
static java.time.format.DateTimeFormatter |
TIME_DETECTION_FORMATTER |
static java.time.format.DateTimeFormatter |
TIME_FORMATTER |
static java.util.List<java.lang.String> |
TRUE_STRINGS |
static java.util.List<java.lang.String> |
TRUE_STRINGS_FOR_DETECTION |
Modifier and Type | Method and Description |
---|---|
static java.time.format.DateTimeFormatter |
getDateFormatter(java.lang.String dateValue)
Returns the first DateTimeFormatter to parse the string, which represents a DATE
|
static java.time.format.DateTimeFormatter |
getDateTimeFormatter(java.lang.String dateTimeValue)
Returns the first DateTimeFormatter to parse the string, which represents a DATE_TIME
|
static java.time.format.DateTimeFormatter |
getTimeFormatter(java.lang.String timeValue)
Returns the first DateTimeFormatter to parse the string, which represents a TIME
|
static Column |
newColumn(java.lang.String name,
ColumnType type)
Constructs and returns a column for the given
name and type |
public static final java.util.List<java.lang.String> TRUE_STRINGS
public static final java.util.List<java.lang.String> TRUE_STRINGS_FOR_DETECTION
public static final java.util.List<java.lang.String> FALSE_STRINGS
public static final java.util.List<java.lang.String> FALSE_STRINGS_FOR_DETECTION
public static final java.time.format.DateTimeFormatter DATE_FORMATTER
public static final java.time.format.DateTimeFormatter DATE_TIME_FORMATTER
public static final java.time.format.DateTimeFormatter TIME_FORMATTER
public static final java.time.format.DateTimeFormatter TIME_DETECTION_FORMATTER
public static final com.google.common.collect.ImmutableList<java.lang.String> MISSING_INDICATORS
public static Column newColumn(@Nonnull java.lang.String name, @Nonnull ColumnType type)
name
and type
public static java.time.format.DateTimeFormatter getDateFormatter(java.lang.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 java.time.format.DateTimeFormatter getDateTimeFormatter(java.lang.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 java.time.format.DateTimeFormatter getTimeFormatter(java.lang.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.