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

Custom Row-Object mapper implementation for CassandraIO

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.12.0
    • io-java-cassandra
    • None

    Description

      The current Cassandra source sink is tightly coupled to the Datastax Object Mapper. This requires users of the sink to provide a POJO describing  the table in Cassandra. Although the POJO is a easy and powerful way to describe the table it does requires users to always recompile the pipeline for each change in the table definition. 

      I suggest adding a abstraction layer that allows users to inject their own mapper implementation. One example use would be a mapper that works with a generic Row implementation rather than a compile-time POJO. 

      This abstraction layer could be implemented by simply supplying a MapperFactory through the Sink/Source builder. 

      Attachments

        Issue Links

          Activity

            People

              charas Max Charas
              charas Max Charas
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 7.5h
                  7.5h