Class JdbcOutputFormat.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setFieldTypes

        public JdbcOutputFormat.Builder setFieldTypes​(int[] fieldTypes)
        required, field types of this jdbc sink.
      • setFlushMaxSize

        public JdbcOutputFormat.Builder setFlushMaxSize​(int flushMaxSize)
        optional, flush max size (includes all append, upsert and delete records), over this number of records, will flush data.
      • setFlushIntervalMills

        public JdbcOutputFormat.Builder setFlushIntervalMills​(long flushIntervalMills)
        optional, flush interval mills, over this time, asynchronous threads will flush data.
      • setMaxRetryTimes

        public JdbcOutputFormat.Builder setMaxRetryTimes​(int maxRetryTimes)
        optional, max retry times for jdbc connector.
      • build

        public JdbcOutputFormat<org.apache.flink.api.java.tuple.Tuple2<Boolean,​org.apache.flink.types.Row>,​org.apache.flink.types.Row,​JdbcBatchStatementExecutor<org.apache.flink.types.Row>> build()
        Finalizes the configuration and checks validity.
        Returns:
        Configured JdbcUpsertOutputFormat