XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.99.5
    • sqoop2-framework
    • None

    Description

      As the title suggests, we want to encourage DRY code in the new IDF implementations.

      As the IDF api mandates CSV and object format for all its sub implementation, I propose we move the common functionality to the base IDF class so that JSON IDF or AvroIDF does not have to repeat this code.

      The only parts of the code that needs to be in subclasses is how then handle the conversion between the "T" ( generic parameter) and the csv/ object representations.

      I saw that http://ingest.tips/2014/12/11/sqoop-1-99-4-release/ mentions extensind from CSVIDF and this cannot technically work since we have the generic T that will be different for AvroIDF or JSON IDF

      Update:

      Also extending from CSVIDF seems a bit ilogical, since the IDF API says that it needs CSV and object Array, these functionality of converting between the two i.e text to object and object to text should be in base class.

      Attachments

        1. SQOOP-1901-v2.patch
          64 kB
          Veena Basavaraj
        2. SQOOP-1901-v4.patch
          63 kB
          Veena Basavaraj
        3. SQOOP-1901-v5.patch
          69 kB
          Veena Basavaraj
        4. SQOOP-1901-v6.patch
          69 kB
          Veena Basavaraj

        Issue Links

          Activity

            People

              vybs Veena Basavaraj
              vybs Veena Basavaraj
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: