Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1569

Count get append to the response before processing the entities using EntityIterator in Olingo Entity Streaming support.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • Important

    Description

      Olingo Entity Streaming support allows us to process entities chunk by chunk. Only after all the chunks are processed we get to know the entire results and its count.

      However entityCollectionIntoStream method in ODataXmlSerializer and ODataJsonSerializer calls writeCount method before calling writeEntitySet method. writeEntitySet method is the method which calls the iterator (EntityIterator) where we process the entities one by one. Calling writeCount method before calling the writeEntitySet method means we need to know the count of the result before we process and get to know the final result. 

       

       

      Attachments

        1. image-2022-05-17-15-10-10-102.png
          121 kB
          Pasan Tennakoon

        Activity

          People

            Unassigned Unassigned
            pasant Pasan Tennakoon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: