public class TypeUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TypeUtils.DateTimeConverter
Handles converting formatted strings and timestamps.
|
Modifier and Type | Field and Description |
---|---|
static java.time.format.DateTimeFormatter |
DATE_FORMATTER |
static java.time.format.DateTimeFormatter |
DATE_TIME_FORMATTER |
static java.util.List |
FALSE_STRINGS |
static java.util.List |
FALSE_STRINGS_FOR_DETECTION |
static long |
integerSize |
static java.util.List |
MISSING_INDICATORS |
static long |
pointerSize |
static java.time.format.DateTimeFormatter |
TIME_DETECTION_FORMATTER |
static java.time.format.DateTimeFormatter |
TIME_FORMATTER |
static java.util.List |
TRUE_STRINGS |
static java.util.List |
TRUE_STRINGS_FOR_DETECTION |
Modifier and Type | Method and Description |
---|---|
static java.time.format.DateTimeFormatter |
getDateFormatter(java.lang.String dateValue) |
static TypeUtils.DateTimeConverter |
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 boolean |
isNullOrEmpty(java.lang.String string) |
static long |
stringSize(java.lang.String s) |
public static final java.util.List TRUE_STRINGS
public static final java.util.List TRUE_STRINGS_FOR_DETECTION
public static final java.util.List FALSE_STRINGS
public static final java.util.List FALSE_STRINGS_FOR_DETECTION
public static final java.util.List MISSING_INDICATORS
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_DETECTION_FORMATTER
public static final java.time.format.DateTimeFormatter TIME_FORMATTER
public static final long pointerSize
public static final long integerSize
public static boolean isNullOrEmpty(java.lang.String string)
public static java.time.format.DateTimeFormatter getDateFormatter(java.lang.String dateValue)
public static TypeUtils.DateTimeConverter 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.
public static final long stringSize(java.lang.String s)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.