类 SqlServerDialect

    • 字段详细资料

      • fieldIde

        public String fieldIde
    • 构造器详细资料

      • SqlServerDialect

        public SqlServerDialect()
      • SqlServerDialect

        public SqlServerDialect​(String fieldIde)
    • 方法详细资料

      • getUpsertStatement

        public Optional<String> getUpsertStatement​(String database,
                                                   String tableName,
                                                   String[] fieldNames,
                                                   String[] uniqueKeyFields)
        从接口复制的说明: JdbcDialect
        Constructs the dialects upsert statement if supported; such as MySQL's DUPLICATE KEY UPDATE, or PostgreSQL's ON CONFLICT... DO UPDATE SET...

        If supported, the returned string will be used as a PreparedStatement. Fields in the statement must be in the same order as the fieldNames parameter.

        If the dialect does not support native upsert statements, the writer will fallback to SELECT ROW Exists + UPDATE/INSERT which may have poor performance.

        指定者:
        getUpsertStatement 在接口中 JdbcDialect
        返回:
        the dialects UPSERT statement or Optional.empty().
      • tableIdentifier

        public String tableIdentifier​(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
        指定者:
        tableIdentifier 在接口中 JdbcDialect
      • parse

        public org.apache.seatunnel.api.table.catalog.TablePath parse​(String tablePath)
        指定者:
        parse 在接口中 JdbcDialect
      • queryNextChunkMax

        public Object queryNextChunkMax​(Connection connection,
                                        JdbcSourceTable table,
                                        String columnName,
                                        int chunkSize,
                                        Object includedLowerBound)
                                 throws SQLException
        从接口复制的说明: JdbcDialect
        Query the maximum value of the next chunk, and the next chunk must be greater than or equal to includedLowerBound value [min_1, max_1), [min_2, max_2),... [min_n, null). Each time this method is called it will return max1, max2...
        指定者:
        queryNextChunkMax 在接口中 JdbcDialect
        参数:
        connection - JDBC connection.
        table - table info.
        columnName - column name.
        chunkSize - chunk size.
        includedLowerBound - the previous chunk end value.
        返回:
        next chunk end value.
        抛出:
        SQLException