Class 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 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 Detail

      • UNKNOWN_TYPE

        public static final ExternalDataType UNKNOWN_TYPE
        Unknown data type
      • INTEGER_TYPE

        public static final ExternalDataType INTEGER_TYPE
        Integer data type
      • DECIMAL_TYPE

        public static final ExternalDataType DECIMAL_TYPE
        Decimal 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.
      • NUMERIC_TYPE

        public static final ExternalDataType NUMERIC_TYPE
        Numeric data type
      • PACKED_DECIMAL

        public static final ExternalDataType PACKED_DECIMAL
        Packed decimal 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.