package util
- Alphabetic
- Public
- All
Type Members
- trait AttributeNameParser extends AnyRef
-
class
CaseInsensitiveMap[T] extends Map[String, T] with Serializable
Builds a map in which keys are case insensitive.
Builds a map in which keys are case insensitive. Input map can be accessed for cases where case-sensitive information is required. The primary constructor is marked private to avoid nested case-insensitive map creation, otherwise the keys in the original map will become case-insensitive in this scenario. Note: CaseInsensitiveMap is serializable. However, after transformation, e.g.
filterKeys()
, it may become not serializable. - sealed trait DateFormatter extends Serializable
- trait DateTimeFormatterHelper extends AnyRef
-
class
DefaultDateFormatter extends Iso8601DateFormatter
The formatter for dates which doesn't require users to specify a pattern.
The formatter for dates which doesn't require users to specify a pattern. While formatting, it uses the default pattern DateFormatter.defaultPattern. In parsing, it follows the CAST logic in conversion of strings to Catalyst's DateType.
-
class
DefaultTimestampFormatter extends Iso8601TimestampFormatter
The formatter for timestamps which doesn't require users to specify a pattern.
The formatter for timestamps which doesn't require users to specify a pattern. While formatting, it uses the default pattern TimestampFormatter.defaultPattern(). In parsing, it follows the CAST logic in conversion of strings to Catalyst's TimestampType.
-
class
FractionTimestampFormatter extends Iso8601TimestampFormatter
The formatter parses/formats timestamps according to the pattern
yyyy-MM-dd HH:mm:ss.[..fff..]
where[..fff..]
is a fraction of second up to microsecond resolution.The formatter parses/formats timestamps according to the pattern
yyyy-MM-dd HH:mm:ss.[..fff..]
where[..fff..]
is a fraction of second up to microsecond resolution. The formatter does not output trailing zeros in the fraction. For example, the timestamp2019-03-05 15:00:01.123400
is formatted as the string2019-03-05 15:00:01.1234
. - class Iso8601DateFormatter extends DateFormatter with DateTimeFormatterHelper
- class Iso8601TimestampFormatter extends TimestampFormatter with DateTimeFormatterHelper
- trait LegacyDateFormatter extends DateFormatter
-
class
LegacyFastDateFormatter extends LegacyDateFormatter
The legacy formatter is based on Apache Commons FastDateFormat.
The legacy formatter is based on Apache Commons FastDateFormat. The formatter uses the default JVM time zone intentionally for compatibility with Spark 2.4 and earlier versions.
Note: Using of the default JVM time zone makes the formatter compatible with the legacy
SparkDateTimeUtils
methodstoJavaDate
andfromJavaDate
that are based on the default JVM time zone too. - class LegacyFastTimestampFormatter extends TimestampFormatter
-
class
LegacySimpleDateFormatter extends LegacyDateFormatter
The legacy formatter is based on
java.text.SimpleDateFormat
.The legacy formatter is based on
java.text.SimpleDateFormat
. The formatter uses the default JVM time zone intentionally for compatibility with Spark 2.4 and earlier versions.Note: Using of the default JVM time zone makes the formatter compatible with the legacy
SparkDateTimeUtils
methodstoJavaDate
andfromJavaDate
that are based on the default JVM time zone too. - class LegacySimpleTimestampFormatter extends TimestampFormatter
-
class
MicrosCalendar extends GregorianCalendar
The custom sub-class of
GregorianCalendar
is needed to get access to protectedfields
immediately after parsing.The custom sub-class of
GregorianCalendar
is needed to get access to protectedfields
immediately after parsing. We cannot use theget()
method because it performs normalization of the fraction part. Accordingly, theMILLISECOND
field doesn't contain original value.Also this class allows to set raw value to the
MILLISECOND
field directly before formatting. - trait ResolveDefaultColumnsUtils extends AnyRef
- trait SparkCharVarcharUtils extends AnyRef
- trait SparkDateTimeUtils extends AnyRef
- trait SparkIntervalUtils extends AnyRef
- trait SparkParserUtils extends AnyRef
-
class
StringConcat extends AnyRef
Concatenation of sequence of strings to final string with cheap append method and one memory allocation for the final string.
Concatenation of sequence of strings to final string with cheap append method and one memory allocation for the final string. Can also bound the final size of the string.
- sealed trait TimestampFormatter extends Serializable
Value Members
- object AttributeNameParser extends AttributeNameParser
- object CaseInsensitiveMap extends Serializable
- object DataTypeJsonUtils
- object DateFormatter extends Serializable
- object IntervalStringStyles extends Enumeration
- object LegacyDateFormats extends Enumeration
-
object
MathUtils
Helper functions for arithmetic operations with overflow.
- object QuotingUtils
-
object
RebaseDateTime
The collection of functions for rebasing days and microseconds from/to the hybrid calendar (Julian + Gregorian since 1582-10-15) which is used by Spark 2.4 and earlier versions to/from Proleptic Gregorian calendar which is used by Spark since version 3.0.
The collection of functions for rebasing days and microseconds from/to the hybrid calendar (Julian + Gregorian since 1582-10-15) which is used by Spark 2.4 and earlier versions to/from Proleptic Gregorian calendar which is used by Spark since version 3.0. See SPARK-26651.
- object ResolveDefaultColumnsUtils extends ResolveDefaultColumnsUtils
- object SparkCharVarcharUtils extends SparkCharVarcharUtils
- object SparkDateTimeUtils extends SparkDateTimeUtils
- object SparkIntervalUtils extends SparkIntervalUtils
- object SparkParserUtils extends SparkParserUtils
- object SparkStringUtils extends Logging
- object TimestampFormatter extends Serializable