Class JdbcIO.ReadWithPartitions<T,​PartitionColumnT>

    • Constructor Detail

      • ReadWithPartitions

        public ReadWithPartitions()
    • Method Detail

      • withDataSourceProviderFn

        public JdbcIO.ReadWithPartitions<T,​PartitionColumnT> withDataSourceProviderFn​(org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Void,​javax.sql.DataSource> dataSourceProviderFn)
      • withNumPartitions

        public JdbcIO.ReadWithPartitions<T,​PartitionColumnT> withNumPartitions​(int numPartitions)
        The number of partitions. This, along with withLowerBound and withUpperBound, form partitions strides for generated WHERE clause expressions used to split the column withPartitionColumn evenly. When the input is less than 1, the number is set to 1.
      • withPartitionColumn

        public JdbcIO.ReadWithPartitions<T,​PartitionColumnT> withPartitionColumn​(java.lang.String partitionColumn)
        The name of a column of numeric type that will be used for partitioning.
      • withDisableAutoCommit

        public JdbcIO.ReadWithPartitions<T,​PartitionColumnT> withDisableAutoCommit​(boolean disableAutoCommit)
        Whether to disable auto commit on read. Defaults to true if not provided. The need for this config varies depending on the database platform. Informix requires this to be set to false while Postgres requires this to be set to true.
      • expand

        public org.apache.beam.sdk.values.PCollection<T> expand​(org.apache.beam.sdk.values.PBegin input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,​org.apache.beam.sdk.values.PCollection<T>>
      • populateDisplayData

        public void populateDisplayData​(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
        Specified by:
        populateDisplayData in interface org.apache.beam.sdk.transforms.display.HasDisplayData
        Overrides:
        populateDisplayData in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,​org.apache.beam.sdk.values.PCollection<T>>