Class JdbcReadOptions.Builder

    • Field Detail

      • query

        protected String query
      • partitionColumnName

        protected String partitionColumnName
      • partitionLowerBound

        protected Long partitionLowerBound
      • partitionUpperBound

        protected Long partitionUpperBound
      • numPartitions

        protected Integer numPartitions
      • fetchSize

        protected int fetchSize
      • autoCommit

        protected boolean autoCommit
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setPartitionColumnName

        public JdbcReadOptions.Builder setPartitionColumnName​(String partitionColumnName)
        optional, name of the column used for partitioning the input.
      • setPartitionLowerBound

        public JdbcReadOptions.Builder setPartitionLowerBound​(long partitionLowerBound)
        optional, the smallest value of the first partition.
      • setPartitionUpperBound

        public JdbcReadOptions.Builder setPartitionUpperBound​(long partitionUpperBound)
        optional, the largest value of the last partition.
      • setNumPartitions

        public JdbcReadOptions.Builder setNumPartitions​(int numPartitions)
        optional, the maximum number of partitions that can be used for parallelism in table reading.
      • setFetchSize

        public JdbcReadOptions.Builder setFetchSize​(int fetchSize)
        optional, the number of rows to fetch per round trip. default value is 0, according to the jdbc api, 0 means that fetchSize hint will be ignored.
      • setAutoCommit

        public JdbcReadOptions.Builder setAutoCommit​(boolean autoCommit)
        optional, whether to set auto commit on the JDBC driver.