public class TextTypes extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TextTypes.StringConversion
Enumerates the possible conversions for string-valued text types.
|
Modifier and Type | Field and Description |
---|---|
static TextDataType |
HEXADECIMAL_BINARY
Binary token values represented as strings of hexadecimal digits.
|
static TextDataType |
ISO_DATE
Date token values represented using ISO-8601 date format.
|
static TextDataType |
ISO_TIMEOFDAY
Timestamp token values represented as a time-of-day using ISO-8601
format.
|
static TextDataType |
ISO_TIMESTAMP
Timestamp token values represented using ISO-8601 timestamp format.
|
static TextDataType |
JAVA_DOUBLE
Double token values represented using default Java
double formatting. |
static TextDataType |
JAVA_DURATION
Duration token values represented using default Java Duration formatting.
|
static TextDataType |
JAVA_FLOAT
Float token values represented using default Java
float formatting. |
static TextDataType |
JAVA_INT
Int token values represented using default Java
int formatting. |
static TextDataType |
JAVA_LONG
Long token values represented using default Java
long formatting. |
static TextDataType |
JAVA_MONEY
Money token values represented using default Java Currency formatting.
|
static TextDataType |
JAVA_NUMERIC
Numeric token values represented using default Java
BigDecimal formatting. |
static TextDataType |
JAVA_PERIOD
Period token values represented using default Java Period formatting.
|
static TextDataType |
RAW_CHARACTER
Character token value represented as single-character strings.
|
static TextDataType |
STRING
Text type for string token values.
|
static TextDataType |
TEXT_IPV4ADDRESS
Ip4Address token values represented as strings in standard form.
|
static TextDataType |
TEXT_IPV6ADDRESS
Ip6Address token values represented as strings in standard form.
|
static TextDataType |
TRUE_FALSE
Boolean token values represented case-insensitively as true and false.
|
Constructor and Description |
---|
TextTypes() |
Modifier and Type | Method and Description |
---|---|
static TextDataType |
EXACT_BOOLEAN(String trueValue,
String falseValue)
Defines an external boolean valued type which maps the specified truth values
in a case-sensitive fashion.
|
static TextDataType |
EXACT_BOOLEAN(String trueValue,
String falseValue,
String nullIndicator)
Defines an external boolean valued type which maps the specified truth values
in a case-sensitive fashion.
|
static TextDataType |
FORMATTED_DATE(DateTimeFormatting format)
Defines an external date valued type using an arbitrary
DateFormat . |
static TextDataType |
FORMATTED_DATE(DateTimeFormatting format,
String nullIndicator)
Defines an external date valued type using an arbitrary
DateFormat . |
static TextDataType |
FORMATTED_DATE(String format)
Defines an external date valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_DATE(String format,
String nullIndicator)
Defines an external date valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_DOUBLE(NumberFormat format)
Defines an external double valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_DOUBLE(NumberFormat format,
String nullIndicator)
Defines an external double valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_DURATION(IntervalFormatting format)
Defines an external duration valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_DURATION(IntervalFormatting format,
String nullIndicator)
Defines an external duration valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_DURATION(String format)
Defines an external duration valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_DURATION(String format,
String nullIndicator)
Defines an external duration valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_FLOAT(NumberFormat format)
Defines an external float valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_FLOAT(NumberFormat format,
String nullIndicator)
Defines an external float valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_INT(NumberFormat format)
Defines an external int valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_INT(NumberFormat format,
String nullIndicator)
Defines an external int valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_LONG(NumberFormat format)
Defines an external long valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_LONG(NumberFormat format,
String nullIndicator)
Defines an external long valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_MONEY(NumberFormat format)
Defines an external money valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_MONEY(NumberFormat format,
String nullIndicator)
Defines an external money valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_NUMERIC(NumberFormat format)
Defines an external numeric valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_NUMERIC(NumberFormat format,
String nullIndicator)
Defines an external numeric valued type using an arbitrary
NumberFormat . |
static TextDataType |
FORMATTED_PERIOD(IntervalFormatting format)
Defines an external period valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_PERIOD(IntervalFormatting format,
String nullIndicator)
Defines an external period valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_PERIOD(String format)
Defines an external period valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_PERIOD(String format,
String nullIndicator)
Defines an external period valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMEOFDAY(DateTimeFormatting format)
Defines an external time valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMEOFDAY(DateTimeFormatting format,
String nullIndicator)
Defines an external time valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMEOFDAY(String format)
Defines an external time valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMEOFDAY(String format,
String nullIndicator)
Defines an external time valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMESTAMP(DateTimeFormatting format)
Defines an external timestamp valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMESTAMP(DateTimeFormatting format,
String nullIndicator)
Defines an external timestamp valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMESTAMP(String format)
Defines an external timestamp valued type using an arbitrary format.
|
static TextDataType |
FORMATTED_TIMESTAMP(String format,
String nullIndicator)
Defines an external timestamp valued type using an arbitrary format.
|
static TextDataType |
GENERIC_OBJECT(Class<?> tokenClass)
Object token values representing a generic object.
|
static TextDataType |
GENERIC_OBJECT(Class<?> tokenClass,
String nullIndicator)
Object token values representing a generic object.
|
static TextDataType |
GENERIC_OBJECT(ObjectTokenType<?> type)
Object token values representing a generic object.
|
static TextDataType |
GENERIC_OBJECT(ObjectTokenType<?> type,
String nullIndicator)
Object token values representing a generic object.
|
static TextDataType |
getDefaultExternalType(ScalarTokenType type)
Gets the default external type for the given token type.
|
static TextDataType |
HEXADECIMAL_BINARY(String nullIndicator)
Binary token values represented as strings of hexadecimal digits with
null values indicated as specified.
|
static TextDataType |
INSENSITIVE_BOOLEAN(String trueValue,
String falseValue)
Defines an external boolean valued type which maps the specified truth values
in a case-insensitive fashion.
|
static TextDataType |
INSENSITIVE_BOOLEAN(String trueValue,
String falseValue,
String nullIndicator)
Defines an external boolean valued type which maps the specified truth values
in a case-insensitive fashion.
|
static TextDataType |
ISO_DATE(String nullIndicator)
Date token values represented using ISO-8601 date format.
|
static TextDataType |
ISO_TIMEOFDAY(String nullIndicator)
Timestamp token values represented as a time-of-day using ISO-8601
format.
|
static TextDataType |
ISO_TIMESTAMP(String nullIndicator)
Timestamp token values represented using ISO-8601 timestamp format.
|
static TextDataType |
JAVA_DOUBLE(String nullIndicator)
Double token values represented using default Java
double formatting. |
static TextDataType |
JAVA_DURATION(String nullIndicator)
Duration token values represented using default Java Duration formatting.
|
static TextDataType |
JAVA_FLOAT(String nullIndicator)
Float token values represented using default Java
float formatting. |
static TextDataType |
JAVA_INT(String nullIndicator)
Int token values represented using default Java
int formatting. |
static TextDataType |
JAVA_LONG(String nullIndicator)
Long token values represented using default Java
long formatting. |
static TextDataType |
JAVA_MONEY(String nullIndicator)
Money token values represented using default Java Currency formatting.
|
static TextDataType |
JAVA_NUMERIC(String nullIndicator)
Numeric token values represented using default Java
BigDecimal formatting. |
static TextDataType |
JAVA_PERIOD(String nullIndicator)
Period token values represented using default Java Period formatting.
|
static TextDataType |
MAPPED_BOOLEAN(TruthValues mapping)
Defines an external boolean valued type using the specified mapping.
|
static TextDataType |
MAPPED_BOOLEAN(TruthValues mapping,
String nullIndicator)
Defines an external boolean valued type using the specified mapping.
|
static TextDataType |
RAW_CHARACTER(String nullIndicator)
Character token value represented as single-character strings.
|
static TextDataType |
STRING(TextTypes.StringConversion behavior)
String token values with the specified conversion behavior.
|
static TextDataType |
STRING(TextTypes.StringConversion behavior,
String nullIndicator)
String token values with the specified conversion behavior and null indicator.
|
static TextDataType |
TEXT_IPV4ADDRESS(String nullIndicator)
Ip4Address token values represented as strings in standard form with
null values indicated as specified.
|
static TextDataType |
TEXT_IPV6ADDRESS(String nullIndicator)
Ip6Address token values represented as strings in standard form with
null values indicated as specified.
|
public static final TextDataType HEXADECIMAL_BINARY
public static final TextDataType TEXT_IPV4ADDRESS
public static final TextDataType TEXT_IPV6ADDRESS
public static final TextDataType TRUE_FALSE
public static final TextDataType RAW_CHARACTER
public static final TextDataType ISO_DATE
public static final TextDataType JAVA_DOUBLE
double
formatting.
That is, using Double.parseDouble(String)
and Double.toString(double)
.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_FLOAT
float
formatting.
That is, using Float.parseFloat(String)
and Float.toString(float)
.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_INT
int
formatting.
That is, using Integer.parseInt(String)
and Integer.toString(int)
.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_LONG
long
formatting.
That is, using Long.parseLong(String)
and Long.toString(long)
.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_NUMERIC
BigDecimal
formatting.
That is, using BigDecimal(String)
and BigDecimal.toString(long)
.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_MONEY
NumberFormat.getCurrecyInstance()
as the format.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_DURATION
java.time.Duration
as the format.
Null values are indicated by the value set in the containing schema.public static final TextDataType JAVA_PERIOD
java.time.Period
as the format.
Null values are indicated by the value set in the containing schema.public static final TextDataType STRING
This is the default type used for external strings.
public static final TextDataType ISO_TIMEOFDAY
public static final TextDataType ISO_TIMESTAMP
public static final TextDataType HEXADECIMAL_BINARY(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static final TextDataType TEXT_IPV4ADDRESS(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static final TextDataType TEXT_IPV6ADDRESS(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static final TextDataType INSENSITIVE_BOOLEAN(String trueValue, String falseValue)
trueValue
- the string value representing true
falseValue
- the string value representing false
public static final TextDataType INSENSITIVE_BOOLEAN(String trueValue, String falseValue, String nullIndicator)
trueValue
- the string value representing true
falseValue
- the string value representing false
nullIndicator
- the string used to represent a null valuepublic static final TextDataType EXACT_BOOLEAN(String trueValue, String falseValue)
trueValue
- the string value representing true
falseValue
- the string value representing false
public static final TextDataType EXACT_BOOLEAN(String trueValue, String falseValue, String nullIndicator)
trueValue
- the string value representing true
falseValue
- the string value representing false
nullIndicator
- the string used to represent a null valuepublic static final TextDataType MAPPED_BOOLEAN(TruthValues mapping)
mapping
- the mapping to use between text and boolean valuespublic static final TextDataType MAPPED_BOOLEAN(TruthValues mapping, String nullIndicator)
mapping
- the mapping to use between text and boolean valuesnullIndicator
- the string used to represent a null valuepublic static final TextDataType RAW_CHARACTER(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static final TextDataType ISO_DATE(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_DATE(String format)
format
- the format of the external date representationDateTimeFormatting
public static TextDataType FORMATTED_DATE(String format, String nullIndicator)
format
- the format of the external date representationnullIndicator
- the string used to represent a null valueDateTimeFormatting
public static TextDataType FORMATTED_DATE(DateTimeFormatting format)
DateFormat
.
The format may contain time elements, though those element values will be
truncated.
Null values are indicated by the value set in the containing schema.format
- the format of the external date representationpublic static TextDataType FORMATTED_DATE(DateTimeFormatting format, String nullIndicator)
DateFormat
.
The format may contain time elements, though those element values will be
truncated.
Null values are indicated as specified.format
- the format of the external date representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_DOUBLE(String nullIndicator)
double
formatting.
That is, using Double.parseDouble(String)
and Double.toString(double)
.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_DOUBLE(NumberFormat format)
NumberFormat
.
Null values are indicated by the value set in the containing schema.format
- the format of the external double representationpublic static TextDataType FORMATTED_DOUBLE(NumberFormat format, String nullIndicator)
NumberFormat
.
Null values are indicated as specified.format
- the format of the external double representationnullIndicator
- the string used to represent a null valuepublic static TextDataType GENERIC_OBJECT(Class<?> tokenClass)
public static final TextDataType GENERIC_OBJECT(Class<?> tokenClass, String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static final TextDataType GENERIC_OBJECT(ObjectTokenType<?> type)
public static final TextDataType GENERIC_OBJECT(ObjectTokenType<?> type, String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_FLOAT(String nullIndicator)
float
formatting.
That is, using Float.parseFloat(String)
and Float.toString(float)
.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_FLOAT(NumberFormat format)
NumberFormat
.
Null values are indicated by the value set in the containing schema.format
- the format of the external float representationpublic static TextDataType FORMATTED_FLOAT(NumberFormat format, String nullIndicator)
NumberFormat
.
Null values are indicated as specified.format
- the format of the external float representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_INT(String nullIndicator)
int
formatting.
That is, using Integer.parseInt(String)
and Integer.toString(int)
.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_INT(NumberFormat format)
NumberFormat
.
Null values are indicated by the value set in the containing schema.format
- the format of the external int representationpublic static TextDataType FORMATTED_INT(NumberFormat format, String nullIndicator)
NumberFormat
.
Null values are indicated as specified.format
- the format of the external int representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_LONG(String nullIndicator)
long
formatting.
That is, using Long.parseLong(String)
and Long.toString(long)
.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_LONG(NumberFormat format)
NumberFormat
.
Null values are indicated by the value set in the containing schema.format
- the format of the external long representationpublic static TextDataType FORMATTED_LONG(NumberFormat format, String nullIndicator)
NumberFormat
.
Null values are indicated as specified.format
- the format of the external long representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_NUMERIC(String nullIndicator)
BigDecimal
formatting.
That is, using BigDecimal(String)
and BigDecimal.toString(long)
.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_NUMERIC(NumberFormat format)
NumberFormat
.
Null values are indicated by the value set in the containing schema.format
- the format of the external numeric representationpublic static TextDataType FORMATTED_NUMERIC(NumberFormat format, String nullIndicator)
NumberFormat
.
Null values are indicated as specified.format
- the format of the external numeric representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_MONEY(String nullIndicator)
NumberFormat.getCurrecyInstance()
as the format.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_MONEY(NumberFormat format)
NumberFormat
.
Null values are indicated by the value set in the containing schema.format
- the format of the external numeric representationpublic static TextDataType FORMATTED_MONEY(NumberFormat format, String nullIndicator)
NumberFormat
.
Null values are indicated as specified.format
- the format of the external money representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_DURATION(String nullIndicator)
java.time.Duration
as the format.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_DURATION(String format)
format
- the format of the external duration representationIntervalFormatting
public static TextDataType FORMATTED_DURATION(String format, String nullIndicator)
format
- the format of the external duration representationnullIndicator
- the string used to represent a null valueIntervalFormatting
public static TextDataType FORMATTED_DURATION(IntervalFormatting format)
format
- the format of the external duration representationpublic static TextDataType FORMATTED_DURATION(IntervalFormatting format, String nullIndicator)
format
- the format of the external duration representationnullIndicator
- the string used to represent a null valuepublic static TextDataType JAVA_PERIOD(String nullIndicator)
java.time.Period
as the format.
Null values are indicated as specified.nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_PERIOD(String format)
format
- the format of the external period representationIntervalFormatting
public static TextDataType FORMATTED_PERIOD(String format, String nullIndicator)
format
- the format of the external period representationnullIndicator
- the string used to represent a null valueIntervalFormatting
public static TextDataType FORMATTED_PERIOD(IntervalFormatting format)
format
- the format of the external period representationpublic static TextDataType FORMATTED_PERIOD(IntervalFormatting format, String nullIndicator)
format
- the format of the external period representationnullIndicator
- the string used to represent a null valuepublic static final TextDataType STRING(TextTypes.StringConversion behavior)
behavior
- indicates how text is to be converted to string valuespublic static final TextDataType STRING(TextTypes.StringConversion behavior, String nullIndicator)
behavior
- indicates how text is to be converted to string valuesnullIndicator
- the string used to represent a null valuepublic static final TextDataType ISO_TIMEOFDAY(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_TIMEOFDAY(String format)
format
- the format of the external time representationDateTimeFormatting
public static TextDataType FORMATTED_TIMEOFDAY(String format, String nullIndicator)
format
- the format of the external time representationnullIndicator
- the string used to represent a null valueDateTimeFormatting
public static TextDataType FORMATTED_TIMEOFDAY(DateTimeFormatting format)
format
- the format of the external time representationpublic static TextDataType FORMATTED_TIMEOFDAY(DateTimeFormatting format, String nullIndicator)
format
- the format of the external time representationnullIndicator
- the string used to represent a null valuepublic static final TextDataType ISO_TIMESTAMP(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic static TextDataType FORMATTED_TIMESTAMP(String format)
format
- the format of the external timestamp representationDateTimeFormatting
public static TextDataType FORMATTED_TIMESTAMP(String format, String nullIndicator)
format
- the format of the external timestamp representationnullIndicator
- the string used to represent a null valueDateTimeFormatting
public static TextDataType FORMATTED_TIMESTAMP(DateTimeFormatting format)
format
- the format of the external timestamp representationpublic static TextDataType FORMATTED_TIMESTAMP(DateTimeFormatting format, String nullIndicator)
format
- the format of the external timestamp representationnullIndicator
- the string used to represent a null valuepublic static TextDataType getDefaultExternalType(ScalarTokenType type)
type
- the type for which to get the defaultCopyright © 2024 Actian Corporation. All rights reserved.