java.lang.Object
com.pervasive.datarush.schema.ExternalDataType
External data types are those DataRush interacts with in some way but does not
support internally in dataflow queues (they are not
PortTypes).
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
FieldsModifier and TypeFieldDescriptionstatic final ExternalDataTypeBoolean data typestatic final ExternalDataTypeText data typestatic final ExternalDataTypeComp3 data typestatic final ExternalDataTypeDate data typestatic final ExternalDataTypeDecimal data typestatic final ExternalDataTypeEncoded numeric type with leading signstatic final ExternalDataTypeEncoded numeric type with separate leading signstatic final ExternalDataTypeEncoded numeric type with trailing signstatic final ExternalDataTypeEncoded numeric type with separate trailing signstatic final ExternalDataTypeFloat data typestatic final ExternalDataTypeInteger data typestatic final ExternalDataTypeLong data typestatic final ExternalDataTypeName data type.static final ExternalDataTypeNumeric data typestatic final ExternalDataTypePacked decimal data typestatic final ExternalDataTypeShort data typestatic final ExternalDataTypeText data typestatic final ExternalDataTypeTime data typestatic final ExternalDataTypeTimestamp data typestatic final ExternalDataTypeUnknown data typestatic final ExternalDataTypeZoned decimal data typestatic final ExternalDataTypeZoned decimal data type with leading signstatic final ExternalDataTypeZoned decimal data type with trailing sign -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn indicator of whether or not the data type is character set encoded.getName()Return the external data type name.intReturn the ordinal value.static ExternalDataTypegetType(int ordinalValue) Get the external data type enum for the given ordinal value.toString()
-
Field Details
-
UNKNOWN_TYPE
Unknown data type -
TEXT_TYPE
Text data type -
CHAR_TYPE
Text data type -
SHORT_TYPE
Short data type -
INTEGER_TYPE
Integer data type -
FLOAT_TYPE
Float data type -
DECIMAL_TYPE
Decimal data type -
DATE_TYPE
Date data type -
TIME_TYPE
Time data type -
TIMESTAMP_TYPE
Timestamp data type -
BOOLEAN_TYPE
Boolean data type -
NAME_TYPE
Name data type. Maps to the same dataflow type as text. -
LONG_TYPE
Long data type -
NUMERIC_TYPE
Numeric data type -
PACKED_DECIMAL
Packed decimal data type -
COMP_3
Comp3 data type -
DISP_SIGN_TRAILING_SEP
Encoded numeric type with separate trailing sign -
DISP_SIGN_LEADING_SEP
Encoded numeric type with separate leading sign -
DISP_SIGN_TRAILING
Encoded numeric type with trailing sign -
DISP_SIGN_LEADING
Encoded numeric type with leading sign -
ZONED_DECIMAL
Zoned decimal data type -
ZONED_LEADING_SIGN
Zoned decimal data type with leading sign -
ZONED_TRAILING_SIGN
Zoned decimal data type with trailing sign
-
-
Method Details
-
toString
-
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
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.
-