Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-960

JdbcIO should infer coder when possible (such as via RowMapper)

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • Missing
    • io-java-jdbc
    • None

    Description

      There are a few ways that we typically do this:

      1. Inspect the static args of the class implementing RowMapper to determine the output type, then consult the coder registry. This method is more limited and not lambda-friendly.
      2. For the a "functional interface" version, like RowMapper that allows setting the output type descriptor.
      3. Also provide an abstract class-based version, for example accepting a SimpleFunction that will automatically have a rich output type descriptor.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kenn Kenneth Knowles
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m