Class BigQuery

    • Field Detail

      • _NODATA_SQL_STATES

        protected static final java.lang.String[] _NODATA_SQL_STATES
      • _LOCK_CONN_ERROR_SUBSTR

        protected static final java.lang.String[] _LOCK_CONN_ERROR_SUBSTR
      • _CANCEL_SQL_STATES

        protected static final java.lang.String[] _CANCEL_SQL_STATES
        BigQuery Cancellation codes, from https://www.postgresql.org/docs/11/errcodes-appendix.html

        • xxxxx: xxxxxxxxxxxxx.
        • 57000: operator_intervention.
        • 57014: query_canceled.
        • 57P01: admin_shutdown.
        • 57P02: crash_shutdown.
        • 57P03: cannot_connect_now.
        • 57P04: database_dropped.
      • _SQL

        protected static Sql _SQL
    • Constructor Detail

      • BigQuery

        public BigQuery()
    • Method Detail

      • getName

        public java.lang.String getName()
      • getCurrentTimestampStr

        public java.lang.String getCurrentTimestampStr()
        Returns:
        The string denoting the current timestamp with timezone statement, e.g., "statement_timestamp()" for Postgres, or "CURRENT_TIMESTAMP" for bigquery.
      • getCurrentDateTimeStr

        public java.lang.String getCurrentDateTimeStr()
        Returns:
        The string denoting the current timestamp without timezone statement, "statement_timestamp()::timestamp" for Postgres, or "CURRENT_DATETIME" for bigquery.
      • getCurrentDateStr

        public java.lang.String getCurrentDateStr()
      • getConnectionNoDataStates

        public java.lang.String[] getConnectionNoDataStates()
      • getConnectionLockMsgs

        public java.lang.String[] getConnectionLockMsgs()
      • getConnectionCancelStates

        public java.lang.String[] getConnectionCancelStates()
      • needsSavepoint

        public boolean needsSavepoint()
      • supportsSelectLimit

        public boolean supportsSelectLimit()
      • supportsSelectOffset

        public boolean supportsSelectOffset()
      • supportsFilterClause

        public boolean supportsFilterClause()
      • supportsFirstLastAggregates

        public boolean supportsFirstLastAggregates()
      • supportsArrays

        public boolean supportsArrays()
      • supportsPrimaryKeys

        public boolean supportsPrimaryKeys()
      • supportsForeignKeys

        public boolean supportsForeignKeys()
      • supportsIndices

        public boolean supportsIndices()
      • getColumnQuotingStartChar

        public char getColumnQuotingStartChar()
      • getColumnQuotingEndChar

        public char getColumnQuotingEndChar()
      • getAggregateStr

        public java.lang.String getAggregateStr​(AggregateType AT)
      • fullIdentifierOnUpdate

        public boolean fullIdentifierOnUpdate()
      • getSQlCodeGen

        public CodeGenSql getSQlCodeGen()
      • getDBStringType

        public DBStringType getDBStringType​(int Size)
      • getColumnType

        public java.lang.String getColumnType​(ColumnType Type,
                                              java.lang.Integer Size,
                                              ColumnMode M,
                                              boolean isCollection,
                                              java.lang.Integer Precision,
                                              java.lang.Integer Scale)
        Specified by:
        getColumnType in class CommonStoreImpl
      • getColumnTypeRaw

        public java.lang.String getColumnTypeRaw​(ColumnType Type,
                                                 int Size,
                                                 boolean Calculated,
                                                 boolean isCollection,
                                                 boolean MultiOverride)
        Specified by:
        getColumnTypeRaw in class CommonStoreImpl
      • getHelperFunctionsScript

        public java.lang.String getHelperFunctionsScript​(Connection Con,
                                                         boolean Start)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getAclRolesScript

        public java.lang.String getAclRolesScript​(Connection Con,
                                                  java.util.List<Schema> TildaList)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getJsonParametrizedQueryPlaceHolder

        public java.lang.String getJsonParametrizedQueryPlaceHolder()
      • alterTableComment

        public boolean alterTableComment​(Connection con,
                                         Object obj)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • alterTableAlterColumnComment

        public boolean alterTableAlterColumnComment​(Connection con,
                                                    Column col)
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isSuperUser

        public boolean isSuperUser​(Connection C)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cancel

        public void cancel​(Connection C)
                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getMaxColumnNameSize

        public int getMaxColumnNameSize()
      • getMaxTableNameSize

        public int getMaxTableNameSize()
      • getBackendConnectionId

        public java.lang.String getBackendConnectionId​(Connection connection)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • supportsSuperMetaDataQueries

        public boolean supportsSuperMetaDataQueries()
      • supportsReorg

        public boolean supportsReorg()
      • reorgTable

        public boolean reorgTable​(Connection con,
                                  java.lang.String schemaName,
                                  java.lang.String tableName,
                                  java.lang.String clusterIndexName,
                                  boolean verbose,
                                  boolean full)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isCaseSentitiveSchemaTableViewNames

        public boolean isCaseSentitiveSchemaTableViewNames()