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.