Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8C71D200C3B for ; Fri, 3 Mar 2017 09:45:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8AF34160B6D; Fri, 3 Mar 2017 08:45:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1B3AC160B57 for ; Fri, 3 Mar 2017 09:45:50 +0100 (CET) Received: (qmail 92985 invoked by uid 500); 3 Mar 2017 08:45:50 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 92976 invoked by uid 99); 3 Mar 2017 08:45:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 08:45:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BE44EC0BF8 for ; Fri, 3 Mar 2017 08:45:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.567 X-Spam-Level: X-Spam-Status: No, score=-6.567 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LmixuPD2q84x for ; Fri, 3 Mar 2017 08:45:40 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id DC8B960D0A for ; Fri, 3 Mar 2017 08:45:37 +0000 (UTC) Received: (qmail 89911 invoked by uid 99); 3 Mar 2017 08:44:22 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 08:44:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D43EADFF71; Fri, 3 Mar 2017 08:44:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sandhya@apache.org To: commits@trafodion.incubator.apache.org Date: Fri, 03 Mar 2017 08:44:35 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [15/49] incubator-trafodion-site git commit: Updates for python installer documentation in provisioning guide. archived-at: Fri, 03 Mar 2017 08:45:53 -0000 http://git-wip-us.apache.org/repos/asf/incubator-trafodion-site/blob/be8dfc15/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/TypeInfo.html ---------------------------------------------------------------------- diff --git a/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/TypeInfo.html b/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/TypeInfo.html new file mode 100644 index 0000000..9dac2f6 --- /dev/null +++ b/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/TypeInfo.html @@ -0,0 +1,879 @@ + + + + + + +TypeInfo (trafodion-sql 2.1.0 API) + + + + + + + + + + + +
+
org.trafodion.sql.udr
+

Class TypeInfo

+
+
+ +
+
    +
  • +
    +
    +
    public class TypeInfo
    +extends TMUDRSerializableObject
    +
    Data types in the UDR interface + +

    Describes an SQL data type and the corresponding C/C++ type, + used for scalar parameters, columns of input rows and + columns of result rows.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo type)
        +
        Copy constructor
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length,
        +        boolean nullable,
        +        int scale,
        +        TypeInfo.SQLCharsetCode charset,
        +        TypeInfo.SQLIntervalCode intervalCode,
        +        int precision,
        +        TypeInfo.SQLCollationCode collation)
        +         throws UDRException
        +
        Constructor with arguments + +

        Construct a TypeInfo object from an SQL type, with several + arguments (including the SQL type). This is mostly used to create + formal parameters or output columns in the compiler interface, if + a more complex data type is required that is not covered by the + TupleInfo.addXXXColumn() methods.

        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        nullable - Determines the NULL / NOT NULL attribute of the type + false means NOT NULL
        scale - Scale for numeric type, fraction precision for + fractional seconds, not needed for other types.
        charset - Character set enum for CHAR/VARCHAR types, not needed + for other types.
        intervalCode - Interval code enum for intervals, not needed otherwise.
        precision - Precision for numeric types and leading precision for + interval data types.
        collation - Collation enum for CHAR/VARCHAR types, not needed for + other types. Note that only one type of collation is + currently supported.
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length,
        +        boolean nullable,
        +        int scale,
        +        TypeInfo.SQLCharsetCode charset,
        +        TypeInfo.SQLIntervalCode intervalCode,
        +        int precision)
        +         throws UDRException
        +
        Constructor with all parameters except collation
        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        nullable - Determines the NULL / NOT NULL attribute of the type + false means NOT NULL
        scale - Scale for numeric type, fraction precision for + fractional seconds, not needed for other types.
        charset - Character set enum for CHAR/VARCHAR types, not needed + for other types.
        intervalCode - Interval code enum for intervals, not needed otherwise.
        precision - Precision for numeric types and leading precision for + interval data types.
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length,
        +        boolean nullable,
        +        int scale,
        +        TypeInfo.SQLCharsetCode charset,
        +        TypeInfo.SQLIntervalCode intervalCode)
        +         throws UDRException
        +
        Constructor with all parameters except precision and collation
        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        nullable - Determines the NULL / NOT NULL attribute of the type + false means NOT NULL
        scale - Scale for numeric type, fraction precision for + fractional seconds, not needed for other types.
        charset - Character set enum for CHAR/VARCHAR types, not needed + for other types.
        intervalCode - Interval code enum for intervals, not needed otherwise.
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length,
        +        boolean nullable,
        +        int scale,
        +        TypeInfo.SQLCharsetCode charset)
        +         throws UDRException
        +
        Constructor with type, length, nullable, scale and charset
        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        nullable - Determines the NULL / NOT NULL attribute of the type + false means NOT NULL
        scale - Scale for numeric type, fraction precision for + fractional seconds, not needed for other types.
        charset - Character set enum for CHAR/VARCHAR types, not needed + for other types.
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length,
        +        boolean nullable,
        +        int scale)
        +         throws UDRException
        +
        Constructor with type, length, nullable and scale
        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        nullable - Determines the NULL / NOT NULL attribute of the type + false means NOT NULL
        scale - Scale for numeric type, fraction precision for + fractional seconds, not needed for other types.
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length,
        +        boolean nullable)
        +         throws UDRException
        +
        Constructor with type, length, and nullable
        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        nullable - Determines the NULL / NOT NULL attribute of the type + false means NOT NULL
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + +
        +
      • +

        TypeInfo

        +
        public TypeInfo(TypeInfo.SQLTypeCode sqlType,
        +        int length)
        +         throws UDRException
        +
        Constructor with type, and length
        +
        Parameters:
        sqlType - SQL type enum to construct the type from.
        length - Length of CHAR/VARCHAR types, not needed for other types. + Note that the length for UTF-8 types is in bytes, not + characters, so this is equivalent to +
        [VAR]CHAR ( length BYTES) CHARACTER SET UTF8
        +
        Throws:
        +
        UDRException
        +
      • +
      + + + + + + + + + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSQLType

        +
        public TypeInfo.SQLTypeCode getSQLType()
        +
        Get the SQL type.
        +
        Returns:
        SQL type enum.
        +
      • +
      + + + +
        +
      • +

        getSQLTypeClass

        +
        public TypeInfo.SQLTypeClassCode getSQLTypeClass()
        +
        Get the SQL type class. + Determine whether this is a numeric character, datetime or interval type.
        +
        Returns:
        SQL type class enum.
        +
      • +
      + + + +
        +
      • +

        getSQLTypeSubClass

        +
        public TypeInfo.SQLTypeSubClassCode getSQLTypeSubClass()
        +
        Get the SQL type subclass. + This goes to one more level of detail beyond the type class, + like exact/approximate numeric, char/varchar, etc.
        +
        Returns:
        SQL type subclass enum.
        +
      • +
      + + + +
        +
      • +

        getIsNullable

        +
        public boolean getIsNullable()
        +
        Get whether the type is nullable.
        +
        Returns:
        True for nullable types, false for non-nullable types.
        +
      • +
      + + + +
        +
      • +

        getScale

        +
        public int getScale()
        +
        Get the scale of the data type. + +

        For integer, largeint, etc. types the scale is 0, since these are + integer data types. For NUMERIC and DECIMAL types, a scale can + be specified. Timestamp and some interval data types have a + "fraction precision" value, which is the number of digits + allowed after the decimal point for seconds. This fraction precision + is returned as the scale, since can be considered the scale of + the seconds part. For other data types like CHAR, the scale + value is meaningless.

        +
        Returns:
        Scale (digits after the decimal point) for numeric types, + fraction precision (digits of fractional seconds) for intervals.
        +
      • +
      + + + +
        +
      • +

        getCharset

        +
        public TypeInfo.SQLCharsetCode getCharset()
        +
        Get the character set of the data type.
        +
        Returns:
        Character set enum.
        +
      • +
      + + + +
        +
      • +

        getIntervalCode

        +
        public TypeInfo.SQLIntervalCode getIntervalCode()
        +
        Get the interval code for start/end fields.
        +
        Returns:
        Interval code enum, indicating start and end fields of an interval type.
        +
      • +
      + + + +
        +
      • +

        getPrecision

        +
        public int getPrecision()
        +
        Get the precision (max. number of significant digits). + + The precision is the maximum number of digits before the decimal + point a value can have. For interval types, this is the "leading + precision". For example, an INTEGER value can range from + -2,147,483,648 to 2,147,483,647. It's precision is 10, since the + longest number has 10 digits. Note that not all 10 digit numbers + can be represented in an integer. This is called binary + precision. NUMERIC and DECIMAL types have decimal precision, + meaning that a NUMERIC(10,0) type can represent values from + -9,999,999,999 to +9,999,999,999.
        +
        Returns:
        Precision of numeric types or interval types.
        +
      • +
      + + + +
        +
      • +

        getFlags

        +
        public int getFlags()
        +
      • +
      + + + +
        +
      • +

        getCollation

        +
        public TypeInfo.SQLCollationCode getCollation()
        +
        Get the collation for char/varchar data types. + +

        Note that, currently, only one collation is supported. + This default collation is a binary collation, except that + trailing blanks are ignored.

        +
        Returns:
        Collation enum.
        +
      • +
      + + + +
        +
      • +

        getByteLength

        +
        public int getByteLength()
        +
        Get the length of a value of the type. + +

        Getting the length is useful for CHAR/VARCHAR data types + but probably not as useful for other types that may have + an internal representation unknown to a UDR writer. + This returns the length in bytes, not in characters.

        +
        Returns:
        Length in bytes.
        See Also:
        getMaxCharLength()
        +
      • +
      + + + +
        +
      • +

        getMaxCharLength

        +
        public int getMaxCharLength()
        +                     throws UDRException
        +
        Get the maximum number of characters that can be stored in this type. + +

        This method should be used only for character types that + have a fixed-width encoding. For variable-length encoding, like + UTF-8, the method returns the highest possible number of characters + (assuming single byte characters in the case of UTF-8). Right now, + UTF-8 data types all have byte semantics, meaning there is no + limit for the number of characters stored in a type, it is only + limited by the number of bytes. The method returns 0 for numeric + types. It returns the length of the string representation for + types that are represented by a string, like datetime types.

        +
        Returns:
        Length in bytes.
        +
        Throws:
        +
        UDRException
        See Also:
        getByteLength()
        +
      • +
      + + + +
        +
      • +

        setNullable

        +
        public void setNullable(boolean nullable)
        +
        Set the nullable attribute of a type + + Use this method to set types created locally in the UDF + to be nullable or not nullable.
        +
        Parameters:
        nullable - true to set the type to nullable, false + to give the type the NOT NULL attibute.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2017. All rights reserved.

+ + http://git-wip-us.apache.org/repos/asf/incubator-trafodion-site/blob/be8dfc15/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/UDR.QueueStateInfo.html ---------------------------------------------------------------------- diff --git a/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/UDR.QueueStateInfo.html b/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/UDR.QueueStateInfo.html new file mode 100644 index 0000000..05921d3 --- /dev/null +++ b/apidocs/2.1.0/tmudr_javadoc/apidocs/org/trafodion/sql/udr/UDR.QueueStateInfo.html @@ -0,0 +1,236 @@ + + + + + + +UDR.QueueStateInfo (trafodion-sql 2.1.0 API) + + + + + + + + + + + +
+
org.trafodion.sql.udr
+

Class UDR.QueueStateInfo

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    UDR
    +
    +
    +
    +
    public static class UDR.QueueStateInfo
    +extends Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        queueState_

        +
        public int queueState_
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2017. All rights reserved.

+ +