Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-513

Change API: Reader.getCurrent() should always return IndexedRecord and Writer.write() should accept IndexedRecord

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • New Feature
    • Resolution: Won't Fix
    • Major
    • 0.24.0
    • None
    • None
    • None
    • All
    • Hide

      no more relevant

      Show
      no more relevant
    • GreenHopper Ranking:
      0|i0zl5f:
    • 9223372036854775807
    • Small

    Description

      Following API changes should be made (potentially breaking):

      1. T Reader.getCurrent() throws NoSuchElementException -> IndexedRecord Reader.getCurrent() throws NoSuchElementException
      2. void Writer.write(Object object) throws IOException -> void Writer.write(IndexedRecord record) throws IOException

      Before we allowed any object for optimization reason in case of specific job design:
      tSomeFamilyInput -> tSomeFamilyOutput (both from the same family)
      It was found it wasn't used. Also we still may have such optimization if component extends IndexedRecord and put its native object there. Output component may try to cast incoming IndexedRecord to its specific type and retrieve native object

      Attachments

        Issue Links

          Activity

            People

              igonchar Ivan Gonchar
              igonchar Ivan Gonchar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: