- java.lang.Object
-
- com.pervasive.datarush.schema.ExternalDataType
-
public class ExternalDataType extends Object
External data types are those DataRush interacts with in some way but does not support internally in dataflow queues (they are notPortTypes
). Currently, all of these types come from the Pervasive Data Integrator product and are uniquely identified by their Pervasive data type code.An
ExternalDataType
is constructed with an indicator of whether or not it is character set encoded. This is supported so customizers of these types may change their behavior based upon the requirement of a decoder. Data types are broadly divided into binary and character set encoded for the purposes of many DataRush readers.
-
-
Field Summary
Fields Modifier and Type Field Description static ExternalDataType
BOOLEAN_TYPE
Boolean data typestatic ExternalDataType
CHAR_TYPE
Text data typestatic ExternalDataType
COMP_3
Comp3 data typestatic ExternalDataType
DATE_TYPE
Date data typestatic ExternalDataType
DECIMAL_TYPE
Decimal data typestatic ExternalDataType
DISP_SIGN_LEADING
Encoded numeric type with leading signstatic ExternalDataType
DISP_SIGN_LEADING_SEP
Encoded numeric type with separate leading signstatic ExternalDataType
DISP_SIGN_TRAILING
Encoded numeric type with trailing signstatic ExternalDataType
DISP_SIGN_TRAILING_SEP
Encoded numeric type with separate trailing signstatic ExternalDataType
FLOAT_TYPE
Float data typestatic ExternalDataType
INTEGER_TYPE
Integer data typestatic ExternalDataType
LONG_TYPE
Long data typestatic ExternalDataType
NAME_TYPE
Name data type.static ExternalDataType
NUMERIC_TYPE
Numeric data typestatic ExternalDataType
PACKED_DECIMAL
Packed decimal data typestatic ExternalDataType
SHORT_TYPE
Short data typestatic ExternalDataType
TEXT_TYPE
Text data typestatic ExternalDataType
TIME_TYPE
Time data typestatic ExternalDataType
TIMESTAMP_TYPE
Timestamp data typestatic ExternalDataType
UNKNOWN_TYPE
Unknown data typestatic ExternalDataType
ZONED_DECIMAL
Zoned decimal data typestatic ExternalDataType
ZONED_LEADING_SIGN
Zoned decimal data type with leading signstatic ExternalDataType
ZONED_TRAILING_SIGN
Zoned decimal data type with trailing sign
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCharsetEncoded()
Return indicator of whether or not the data type is character set encoded.String
getName()
Return the external data type name.int
getOrdinal()
Return the ordinal value.static ExternalDataType
getType(int ordinalValue)
Get the external data type enum for the given ordinal value.String
toString()
-
-
-
Field Detail
-
UNKNOWN_TYPE
public static final ExternalDataType UNKNOWN_TYPE
Unknown data type
-
TEXT_TYPE
public static final ExternalDataType TEXT_TYPE
Text data type
-
CHAR_TYPE
public static final ExternalDataType CHAR_TYPE
Text data type
-
SHORT_TYPE
public static final ExternalDataType SHORT_TYPE
Short data type
-
INTEGER_TYPE
public static final ExternalDataType INTEGER_TYPE
Integer data type
-
FLOAT_TYPE
public static final ExternalDataType FLOAT_TYPE
Float data type
-
DECIMAL_TYPE
public static final ExternalDataType DECIMAL_TYPE
Decimal data type
-
DATE_TYPE
public static final ExternalDataType DATE_TYPE
Date data type
-
TIME_TYPE
public static final ExternalDataType TIME_TYPE
Time data type
-
TIMESTAMP_TYPE
public static final ExternalDataType TIMESTAMP_TYPE
Timestamp data type
-
BOOLEAN_TYPE
public static final ExternalDataType BOOLEAN_TYPE
Boolean data type
-
NAME_TYPE
public static final ExternalDataType NAME_TYPE
Name data type. Maps to the same dataflow type as text.
-
LONG_TYPE
public static final ExternalDataType LONG_TYPE
Long data type
-
NUMERIC_TYPE
public static final ExternalDataType NUMERIC_TYPE
Numeric data type
-
PACKED_DECIMAL
public static final ExternalDataType PACKED_DECIMAL
Packed decimal data type
-
COMP_3
public static final ExternalDataType COMP_3
Comp3 data type
-
DISP_SIGN_TRAILING_SEP
public static final ExternalDataType DISP_SIGN_TRAILING_SEP
Encoded numeric type with separate trailing sign
-
DISP_SIGN_LEADING_SEP
public static final ExternalDataType DISP_SIGN_LEADING_SEP
Encoded numeric type with separate leading sign
-
DISP_SIGN_TRAILING
public static final ExternalDataType DISP_SIGN_TRAILING
Encoded numeric type with trailing sign
-
DISP_SIGN_LEADING
public static final ExternalDataType DISP_SIGN_LEADING
Encoded numeric type with leading sign
-
ZONED_DECIMAL
public static final ExternalDataType ZONED_DECIMAL
Zoned decimal data type
-
ZONED_LEADING_SIGN
public static final ExternalDataType ZONED_LEADING_SIGN
Zoned decimal data type with leading sign
-
ZONED_TRAILING_SIGN
public static final ExternalDataType ZONED_TRAILING_SIGN
Zoned decimal data type with trailing sign
-
-
Method Detail
-
getName
public String getName()
Return the external data type name.- Returns:
- data type name
-
getOrdinal
public int getOrdinal()
Return the ordinal value.- Returns:
- ordinal value
-
getCharsetEncoded
public boolean getCharsetEncoded()
Return indicator of whether or not the data type is character set encoded.- Returns:
- character set encoding indicator
-
getType
public static ExternalDataType getType(int ordinalValue)
Get the external data type enum for the given ordinal value.- Parameters:
ordinalValue
- The ordinal value to look up.- Returns:
- type The ExternalDataType object with the ordinal value.
-
-